org.jbehave.core
Class AbstractStory
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
configuration
protected StoryConfiguration configuration
candidateSteps
protected java.util.List<CandidateSteps> candidateSteps
AbstractStory
public AbstractStory()
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.