Package org.jbehave.core.embedder
Class StoryManager
- java.lang.Object
-
- org.jbehave.core.embedder.StoryManager
-
public class StoryManager extends Object
Manages the execution and outcomes of running stories. While each story is run by thePerformableTree, the manager is responsible for the concurrent submission and monitoring of their execution via theExecutorService.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStoryManager.RunningStorystatic classStoryManager.StoryExecutionFailedstatic classStoryManager.StoryOutcomestatic classStoryManager.StoryTimedOutstatic classStoryManager.ThrowableStory
-
Constructor Summary
Constructors Constructor Description StoryManager(Configuration configuration, InjectableStepsFactory stepsFactory, EmbedderControls embedderControls, EmbedderMonitor embedderMonitor, ExecutorService executorService, PerformableTree performableTree, StoryTimeouts.TimeoutParser... parsers)
-
Method Summary
Modifier and Type Method Description voidclear()List<Story>excludedBy(MetaFilter filter)List<StoryManager.StoryOutcome>outcomes()PerformableTree.PerformableRootperformableRoot()StoryManager.RunningStoryrunningStory(Story story)voidrunStories(List<Story> stories, MetaFilter filter, BatchFailures failures)voidrunStoriesAsPaths(List<String> storyPaths, MetaFilter filter, BatchFailures failures)List<Story>storiesOfPaths(List<String> storyPaths)StorystoryOfPath(String storyPath)StorystoryOfText(String storyAsText, String storyId)voidwaitUntilAllDoneOrFailed(PerformableTree.RunContext context)protected voidwriteStoryDurations(Collection<StoryManager.RunningStory> runningStories)
-
-
-
Constructor Detail
-
StoryManager
public StoryManager(Configuration configuration, InjectableStepsFactory stepsFactory, EmbedderControls embedderControls, EmbedderMonitor embedderMonitor, ExecutorService executorService, PerformableTree performableTree, StoryTimeouts.TimeoutParser... parsers)
-
-
Method Detail
-
clear
public void clear()
-
performableRoot
public PerformableTree.PerformableRoot performableRoot()
-
outcomes
public List<StoryManager.StoryOutcome> outcomes()
-
runStoriesAsPaths
public void runStoriesAsPaths(List<String> storyPaths, MetaFilter filter, BatchFailures failures)
-
runStories
public void runStories(List<Story> stories, MetaFilter filter, BatchFailures failures)
-
excludedBy
public List<Story> excludedBy(MetaFilter filter)
-
runningStory
public StoryManager.RunningStory runningStory(Story story)
-
waitUntilAllDoneOrFailed
public void waitUntilAllDoneOrFailed(PerformableTree.RunContext context)
-
writeStoryDurations
protected void writeStoryDurations(Collection<StoryManager.RunningStory> runningStories)
-
-