|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbehave.core.AbstractStory
public abstract class AbstractStory
Abstract implementation of RunnableStory which is intended as a base
class with no explicit support for any test framework. It provides the
Embedder used to run the story or stories, using the
Configuration and the CandidateSteps specified. By
default, MostUsefulConfiguration) and
Embedder.Embedder() are used, but these can overridden via
the RunnableStory.useConfiguration(Configuration) and
RunnableStory.useEmbedder(Embedder) methods respectively.
Users need to add the CandidateSteps instances, via the
RunnableStory.addSteps(CandidateSteps...) method.
Typically, users that use JUnit will find it easier to extend other
implementations, such as JUnitStory or JUnitStories, which
implement the RunnableStory.run() via JUnit's annotations.
| Constructor Summary | |
|---|---|
AbstractStory()
|
|
| Method Summary | |
|---|---|
void |
addSteps(CandidateSteps... steps)
Adds CandidateSteps instances used by the Embedder |
void |
addSteps(java.util.List<CandidateSteps> steps)
Adds CandidateSteps instances used by the Embedder |
protected java.util.List<CandidateSteps> |
candidateSteps()
|
protected Configuration |
configuration()
|
protected Embedder |
configuredEmbedder()
|
void |
useConfiguration(Configuration configuration)
Specifies the story configuration overriding any default |
void |
useEmbedder(Embedder embedder)
Specifies the story embedder overriding any default |
| 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 |
| Constructor Detail |
|---|
public AbstractStory()
| Method Detail |
|---|
public void useConfiguration(Configuration configuration)
RunnableStory
useConfiguration in interface RunnableStoryconfiguration - the Configurationpublic void addSteps(CandidateSteps... steps)
RunnableStory
addSteps in interface RunnableStorysteps - the CandidateSteps instances used to match textual stepspublic void addSteps(java.util.List<CandidateSteps> steps)
RunnableStory
addSteps in interface RunnableStorysteps - the CandidateSteps instances used to match textual stepspublic void useEmbedder(Embedder embedder)
RunnableStory
useEmbedder in interface RunnableStoryembedder - the Embedder running the storyprotected Configuration configuration()
protected java.util.List<CandidateSteps> candidateSteps()
protected Embedder configuredEmbedder()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||