|
||||||||||
| 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.
| Nested Class Summary | |
|---|---|
static interface |
StoryRunner.State
|
| Constructor Summary | |
|---|---|
StoryRunner()
|
|
| Method Summary | |
|---|---|
void |
cancelStory(Story story,
StoryDuration storyDuration)
Cancels story execution following a timeout |
boolean |
failed(StoryRunner.State state)
|
java.lang.Throwable |
failure(StoryRunner.State state)
|
void |
run(Configuration configuration,
InjectableStepsFactory stepsFactory,
Story story,
MetaFilter filter,
StoryRunner.State beforeStories)
Runs a Story with the given steps factory, applying the given meta filter, and staring from given state. |
void |
run(Configuration configuration,
java.util.List<CandidateSteps> candidateSteps,
Story story)
Runs a Story with the given configuration and steps. |
void |
run(Configuration configuration,
java.util.List<CandidateSteps> candidateSteps,
Story story,
MetaFilter filter)
Runs a Story with the given configuration and steps, applying the given meta filter. |
void |
run(Configuration configuration,
java.util.List<CandidateSteps> candidateSteps,
Story story,
MetaFilter filter,
StoryRunner.State beforeStories)
Runs a Story with the given configuration and steps, applying the given meta filter, and staring from given state. |
StoryRunner.State |
runBeforeOrAfterStories(Configuration configuration,
java.util.List<CandidateSteps> candidateSteps,
StepCollector.Stage stage)
Run steps before or after a collection of stories. |
Story |
storyOfPath(Configuration configuration,
java.lang.String storyPath)
Returns the parsed story from the given path |
Story |
storyOfText(Configuration configuration,
java.lang.String storyAsText,
java.lang.String storyId)
Returns the parsed story from the given text |
java.lang.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 StoryRunner.State runBeforeOrAfterStories(Configuration configuration,
java.util.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 Stage
public void run(Configuration configuration,
java.util.List<CandidateSteps> candidateSteps,
Story story)
throws java.lang.Throwable
configuration - the Configuration used to run storycandidateSteps - the List of CandidateSteps containing the candidate
steps methodsstory - the Story to run
java.lang.Throwable - if failures occurred and FailureStrategy dictates it to
be re-thrown.
public void run(Configuration configuration,
java.util.List<CandidateSteps> candidateSteps,
Story story,
MetaFilter filter)
throws java.lang.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
java.lang.Throwable - if failures occurred and FailureStrategy dictates it to
be re-thrown.
public void run(Configuration configuration,
java.util.List<CandidateSteps> candidateSteps,
Story story,
MetaFilter filter,
StoryRunner.State beforeStories)
throws java.lang.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 MetabeforeStories - the State before running any of the stories, if not
null
java.lang.Throwable - if failures occurred and FailureStrategy dictates it to
be re-thrown.
public void run(Configuration configuration,
InjectableStepsFactory stepsFactory,
Story story,
MetaFilter filter,
StoryRunner.State beforeStories)
throws java.lang.Throwable
configuration - the Configuration used to run storystepsFactory - the InjectableStepsFactory used to created the
candidate steps methodsstory - the Story to runfilter - the Filter to apply to the story MetabeforeStories - the State before running any of the stories, if not
null
java.lang.Throwable - if failures occurred and FailureStrategy dictates it to
be re-thrown.
public Story storyOfPath(Configuration configuration,
java.lang.String storyPath)
configuration - the Configuration used to run storystoryPath - the story path
public Story storyOfText(Configuration configuration,
java.lang.String storyAsText,
java.lang.String storyId)
configuration - the Configuration used to run storystoryAsText - the story textstoryId - the story Id, which will be returned as story path
public void cancelStory(Story story,
StoryDuration storyDuration)
story - the Story that was timed outstoryDuration - the StoryDurationpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean failed(StoryRunner.State state)
public java.lang.Throwable failure(StoryRunner.State state)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||