org.jbehave.core
Class RunnableStoryDelegator

java.lang.Object
  extended by org.jbehave.core.RunnableStoryDelegator
All Implemented Interfaces:
RunnableStory
Direct Known Subclasses:
JUnitStories, JUnitStory

public abstract class RunnableStoryDelegator
extends Object
implements RunnableStory

Delegates RunnableStory functionality to a delegate specified in a post-instantiation call to delegateTo(..)

Note that we cannot use a constructor as some delegates, e.g. can only be provided after the super() constructor has been invoked.

See Also:
RunnableStory

Constructor Summary
RunnableStoryDelegator()
           
 
Method Summary
 void addSteps(CandidateSteps... steps)
           
protected  void delegateTo(RunnableStory delegate)
           
 void generateStepdoc()
           
 StoryConfiguration getConfiguration()
           
 List<CandidateSteps> getSteps()
           
 void runStory()
           
 void useConfiguration(StoryConfiguration configuration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunnableStoryDelegator

public RunnableStoryDelegator()
Method Detail

delegateTo

protected void delegateTo(RunnableStory delegate)

runStory

public void runStory()
              throws Throwable
Specified by:
runStory in interface RunnableStory
Throws:
Throwable

useConfiguration

public void useConfiguration(StoryConfiguration configuration)
Specified by:
useConfiguration in interface RunnableStory

getConfiguration

public StoryConfiguration getConfiguration()
Specified by:
getConfiguration in interface RunnableStory

addSteps

public void addSteps(CandidateSteps... steps)
Specified by:
addSteps in interface RunnableStory

getSteps

public List<CandidateSteps> getSteps()
Specified by:
getSteps in interface RunnableStory

generateStepdoc

public void generateStepdoc()
Specified by:
generateStepdoc in interface RunnableStory


Copyright © 2003-2010. All Rights Reserved.