package org.jbehave.examples.core.pico; import java.util.List; import org.jbehave.core.annotations.UsingSteps; import org.jbehave.core.io.StoryFinder; import org.jbehave.examples.core.steps.AndSteps; import org.jbehave.examples.core.steps.BeforeAfterSteps; import org.jbehave.examples.core.steps.CalendarSteps; import org.jbehave.examples.core.steps.PendingSteps; import org.jbehave.examples.core.steps.PriorityMatchingSteps; import org.jbehave.examples.core.steps.SandpitSteps; import org.jbehave.examples.core.steps.SearchSteps; import org.jbehave.examples.core.steps.TraderSteps; import org.junit.Test; import static org.jbehave.core.io.CodeLocations.codeLocationFromPath; @UsingSteps(instances = { TraderSteps.class, BeforeAfterSteps.class, AndSteps.class, CalendarSteps.class, PendingSteps.class, PriorityMatchingSteps.class, SandpitSteps.class, SearchSteps.class }) public class InheritingAnnotatedEmbedderUsingSteps extends ParentAnnotatedEmbedderUsingPico { @Test public void run() { injectedEmbedder().runStoriesAsPaths(storyPaths()); } protected List<String> storyPaths() { return new StoryFinder().findPaths(codeLocationFromPath("../core/src/main/java"), "**/*.story", ""); } }