org.jbehave.core
Class AbstractStory

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

public abstract class AbstractStory
extends java.lang.Object
implements RunnableStory

Abstract implementation of RunnableStory which is intended as a base class for delegate implementations of RunnableStory. As such, it has no explicit supports for any test framework. It provides the StoryEmbedder used to run the story or stories, with the provided StoryConfiguration and the CandidateSteps.

Typically, users will find it easier to extend other implementations such as JUnitStory or JUnitStories which also provide support for test frameworks and also provide the story class or story paths being implemented by the user.


Field Summary
protected  java.util.List<CandidateSteps> candidateSteps
           
protected  StoryConfiguration configuration
           
 
Constructor Summary
AbstractStory()
           
 
Method Summary
 void addSteps(CandidateSteps... steps)
           
protected  StoryEmbedder configuredEmbedder()
           
 StoryConfiguration getConfiguration()
           
 java.util.List<CandidateSteps> getSteps()
           
 void useConfiguration(StoryConfiguration configuration)
           
 void useEmbedder(StoryEmbedder embedder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jbehave.core.RunnableStory
run
 

Field Detail

configuration

protected StoryConfiguration configuration

candidateSteps

protected java.util.List<CandidateSteps> candidateSteps
Constructor Detail

AbstractStory

public AbstractStory()
Method Detail

getConfiguration

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

getSteps

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

useConfiguration

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

addSteps

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

useEmbedder

public void useEmbedder(StoryEmbedder embedder)
Specified by:
useEmbedder in interface RunnableStory

configuredEmbedder

protected StoryEmbedder configuredEmbedder()


Copyright © 2003-2010. All Rights Reserved.