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 class
StoryManager.RunningStory
static class
StoryManager.StoryExecutionFailed
static class
StoryManager.StoryOutcome
static class
StoryManager.StoryTimedOut
static class
StoryManager.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 void
clear()
List<Story>
excludedBy(MetaFilter filter)
List<StoryManager.StoryOutcome>
outcomes()
PerformableTree.PerformableRoot
performableRoot()
StoryManager.RunningStory
runningStory(Story story)
void
runStories(List<Story> stories, MetaFilter filter, BatchFailures failures)
void
runStoriesAsPaths(List<String> storyPaths, MetaFilter filter, BatchFailures failures)
List<Story>
storiesOfPaths(List<String> storyPaths)
Story
storyOfPath(String storyPath)
Story
storyOfText(String storyAsText, String storyId)
void
waitUntilAllDoneOrFailed(PerformableTree.RunContext context)
protected void
writeStoryDurations(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)
-
-