|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbehave.core.embedder.StoryRunner
public class StoryRunner
Runs a Story
, given a Configuration
and a list of
CandidateSteps
, describing the results to the StoryReporter
.
Constructor Summary | |
---|---|
StoryRunner()
|
Method Summary | |
---|---|
void |
run(Configuration configuration,
List<CandidateSteps> candidateSteps,
Story story)
Runs a Story with the given configuration and steps. |
void |
run(Configuration configuration,
List<CandidateSteps> candidateSteps,
Story story,
MetaFilter filter)
Runs a Story with the given configuration and steps, applying the given meta filter. |
void |
runBeforeOrAfterStories(Configuration configuration,
List<CandidateSteps> candidateSteps,
StepCollector.Stage stage)
Run steps before or after a collection of stories. |
Story |
storyOfPath(Configuration configuration,
String storyPath)
Returns the parsed story from the given path |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StoryRunner()
Method Detail |
---|
public void runBeforeOrAfterStories(Configuration configuration, List<CandidateSteps> candidateSteps, StepCollector.Stage stage)
configuration
- the Configuration used to find the steps to runcandidateSteps
- the List of CandidateSteps containing the candidate
steps methodsstage
- the Stagepublic void run(Configuration configuration, List<CandidateSteps> candidateSteps, Story story) throws Throwable
configuration
- the Configuration used to run storycandidateSteps
- the List of CandidateSteps containing the candidate
steps methodsstory
- the Story to run
Throwable
- if failures occurred and FailureStrategy dictates it to
be re-thrown.public void run(Configuration configuration, List<CandidateSteps> candidateSteps, Story story, MetaFilter filter) throws Throwable
configuration
- the Configuration used to run storycandidateSteps
- the List of CandidateSteps containing the candidate
steps methodsstory
- the Story to runfilter
- the Filter to apply to the story Meta
Throwable
- if failures occurred and FailureStrategy dictates it to
be re-thrown.public Story storyOfPath(Configuration configuration, String storyPath)
configuration
- the Configuration used to run storystoryPath
- the story path
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |