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

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

1 |  |
     package org.jbehave.ant;
2 |  |
3 |  |
     import static org.apache.tools.ant.Project.MSG_INFO;
4 |  |
5 |  |
     import org.apache.tools.ant.BuildException;
6 |  |
     import org.jbehave.core.embedder.Embedder;
7 |  |
     import org.jbehave.core.junit.AnnotatedEmbedderRunner;
8 |  |
     import org.junit.runner.RunWith;
9 |  |
10 |  |
     /**
11 |  |
      * Ant task that runs with {@link AnnotatedEmbedderRunner}, equivalent to
12 |  |
      * execution via JUnit's {@link RunWith}.
13 |  |
      */
14 | 1 |
     public class RunStoriesWithAnnotatedEmbedderRunner extends AbstractEmbedderTask {
15 |  |
16 |  |
         public void execute() throws BuildException {
17 | 1 |
             Embedder embedder = newEmbedder();
18 | 1 |
             log("Running stories with annotated embedder runner", MSG_INFO);
19 | 1 |
             embedder.runStoriesWithAnnotatedEmbedderRunner(classNames());
20 | 1 |
         }
21 |  |
22 |  |
     }