Package org.jbehave.core.embedder
Class PerformableTree
java.lang.Object
org.jbehave.core.embedder.PerformableTree
Creates a tree of
PerformableTree.Performable objects for a set of stories, grouping
sets of performable steps for each story and scenario, and adding before and
after stories steps. The process has two phases:
- The tree is populated with groups of performable steps when the stories
are added via the
addStories(RunContext, List)method. - The performable steps are then populated with the results when the
performBeforeOrAfterStories(RunContext, Stage)andperform(RunContext, Story)methods are executed.
PerformableTree.RunContext for the set of stories being run
but the individual stories can be performed concurrently.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic interfacestatic classstatic classstatic classstatic classstatic classstatic classstatic interfacestatic classThe context for running a story.static interfacestatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStories(PerformableTree.RunContext context, List<Story> stories) getRoot()newRunContext(Configuration configuration, AllStepCandidates allStepCandidates, EmbedderMonitor embedderMonitor, MetaFilter filter, BatchFailures failures) voidperform(PerformableTree.RunContext context, Story story) voidperformBeforeOrAfterStories(PerformableTree.RunContext context, StepCollector.Stage stage) storyOfPath(Configuration configuration, String storyPath) Returns the parsed story from the given pathstoryOfText(Configuration configuration, String storyAsText, String storyId) Returns the parsed story from the given texttoString()
-
Constructor Details
-
PerformableTree
public PerformableTree()
-
-
Method Details
-
getRoot
-
addStories
-
storyOfPath
Returns the parsed story from the given path- Parameters:
configuration- the Configuration used to run storystoryPath- the story path- Returns:
- The parsed Story
-
storyOfText
Returns the parsed story from the given text- Parameters:
configuration- the Configuration used to run storystoryAsText- the story textstoryId- the story Id, which will be returned as story path- Returns:
- The parsed Story
-
perform
-
performBeforeOrAfterStories
public void performBeforeOrAfterStories(PerformableTree.RunContext context, StepCollector.Stage stage) -
toString
-
newRunContext
public PerformableTree.RunContext newRunContext(Configuration configuration, AllStepCandidates allStepCandidates, EmbedderMonitor embedderMonitor, MetaFilter filter, BatchFailures failures)
-