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

Classes in this File | Line Coverage | Branch Coverage | Complexity
ReportStepdocsAsEmbeddables |
0% | 0/5
N/A | N/A
| 1.0;1

1 |  |
     package org.jbehave.ant;
2 |  |
3 |  |
     import org.apache.tools.ant.BuildException;
4 |  |
     import org.jbehave.core.Embeddable;
5 |  |
     import org.jbehave.core.configuration.Configuration;
6 |  |
     import org.jbehave.core.embedder.Embedder;
7 |  |
     import org.jbehave.core.steps.CandidateSteps;
8 |  |
9 |  |
     import static org.apache.tools.ant.Project.MSG_INFO;
10 |  |
11 |  |
     /**
12 |  |
      * Ant task to report stepdocs for the {@link Embeddable} instances provided (more specifically instances
13 |  |
      * of {@link ConfiguredEmbedder} which provides both {@link Configuration} and {@link CandidateSteps}).
14 |  |
      */
15 | 0 |
     public class ReportStepdocsAsEmbeddables extends AbstractEmbedderTask {
16 |  |
17 |  |
             public void execute() throws BuildException {
18 | 0 |
                     Embedder embedder = newEmbedder();
19 | 0 |
                     log("Reporting stepdocs as embeddables using embedder " + embedder, MSG_INFO);
20 | 0 |
                     embedder.reportStepdocsAsEmbeddables(classNames());
21 | 0 |
             }
22 |  |
23 |  |
     }