Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
JUnitStoryMaps |
|
| 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.junit.Test; | |
7 | ||
8 | /** | |
9 | * <p> | |
10 | * JUnit-runnable entry-point to map stories specified by {@link #storyPaths()}, | |
11 | * using the meta filters specified by {@link #metaFilters()}. | |
12 | * </p> | |
13 | */ | |
14 | 1 | public abstract class JUnitStoryMaps extends ConfigurableEmbedder { |
15 | ||
16 | @Test | |
17 | public void run() throws Throwable { | |
18 | 0 | configuredEmbedder().mapStoriesAsPaths(storyPaths()); |
19 | 0 | } |
20 | ||
21 | protected abstract List<String> metaFilters(); | |
22 | ||
23 | protected abstract List<String> storyPaths(); | |
24 | ||
25 | } |