##### Coverage Report - org.jbehave.mojo.ReportStepdocsAsEmbeddables

Classes in this File | Line Coverage | Branch Coverage | Complexity
ReportStepdocsAsEmbeddables |
0% | 0/8
N/A | N/A
| 3.0;3

1 |  |
     package org.jbehave.mojo;
2 |  |
3 |  |
     import org.apache.maven.plugin.MojoExecutionException;
4 |  |
     import org.apache.maven.plugin.MojoFailureException;
5 |  |
     import org.jbehave.core.Embeddable;
6 |  |
     import org.jbehave.core.configuration.Configuration;
7 |  |
     import org.jbehave.core.embedder.Embedder;
8 |  |
     import org.jbehave.core.steps.CandidateSteps;
9 |  |
10 |  |
     /**
11 |  |
      * Mojo to report stepdocs for the {@link Embeddable} instances provided (more
12 |  |
      * specifically instances of {@link ConfiguredEmbedder} which provides both
13 |  |
      * {@link Configuration} and {@link CandidateSteps}).
14 |  |
      *
15 |  |
      * @goal report-stepdocs-as-embeddables
16 |  |
      */
17 | 0 |
     public class ReportStepdocsAsEmbeddables extends AbstractEmbedderMojo {
18 |  |
19 |  |
         public void execute() throws MojoExecutionException, MojoFailureException {
20 | 0 |
             Embedder embedder = newEmbedder();
21 | 0 |
             getLog().info("Reporting stepdocs as embeddables using embedder " + embedder);
22 |  |
             try {
23 | 0 |
                 embedder.reportStepdocsAsEmbeddables(classNames());
24 | 0 |
             } catch (RuntimeException e) {
25 | 0 |
                 throw new MojoFailureException("Failed to report stepdocs as embeddables", e);
26 | 0 |
             }
27 | 0 |
         }
28 |  |
29 |  |
     }