org.jbehave.core.embedder
Class StoryRunner

java.lang.Object
  extended by org.jbehave.core.embedder.StoryRunner

public class StoryRunner
extends java.lang.Object

Runs a Story, given a Configuration and a list of CandidateSteps, describing the results to the StoryReporter.

Author:
Elizabeth Keogh, Mauro Talevi, Paul Hammant

Constructor Summary
StoryRunner()
           
 
Method Summary
 void run(Configuration configuration, java.util.List<CandidateSteps> candidateSteps, Story story)
          Runs a Story with the given configuration and steps.
 void 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)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StoryRunner

public StoryRunner()
Method Detail

runBeforeOrAfterStories

public void runBeforeOrAfterStories(Configuration configuration,
                                    java.util.List<CandidateSteps> candidateSteps,
                                    StepCollector.Stage stage)
Run steps before or after a collection of stories. Steps are execute only once per collection of stories.

Parameters:
configuration - the Configuration used to find the steps to run
candidateSteps - List of CandidateSteps containing the candidate steps methods
stage - the Stage

run

public void run(Configuration configuration,
                java.util.List<CandidateSteps> candidateSteps,
                Story story)
         throws java.lang.Throwable
Runs a Story with the given configuration and steps.

Parameters:
configuration - the Configuration used to run story
candidateSteps - the List of CandidateSteps containing the candidate steps methods
story - the Story to run
Throws:
java.lang.Throwable - if failures occurred and FailureStrategy dictates it to be re-thrown.

storyOfPath

public Story storyOfPath(Configuration configuration,
                         java.lang.String storyPath)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2010. All Rights Reserved.