##### Coverage Report - org.jbehave.core.junit.JUnitStories

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

1 |  |
     package org.jbehave.core.junit;
2 |  |
3 |  |
     import java.util.List;
4 |  |
5 |  |
     import org.jbehave.core.ConfigurableEmbedder;
6 |  |
     import org.jbehave.core.embedder.Embedder;
7 |  |
     import org.junit.Test;
8 |  |
9 |  |
     /**
10 |  |
      * <p>
11 |  |
      * JUnit-runnable entry-point to run multiple stories specified by {@link JUnitStories#storyPaths()}.
12 |  |
      * </p>
13 |  |
      */
14 | 2 |
     public abstract class JUnitStories extends ConfigurableEmbedder {
15 |  |
16 |  |
         @Test
17 |  |
         public void run() throws Throwable {
18 | 2 |
             Embedder embedder = configuredEmbedder();
19 |  |
             try {
20 | 2 |
                 embedder.runStoriesAsPaths(storyPaths());
21 |  |
             } finally {
22 | 2 |
                 embedder.generateCrossReference();
23 | 1 |
             }
24 | 1 |
         }
25 |  |
26 |  |
         protected abstract List<String> storyPaths();
27 |  |
28 |  |
     }