|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbehave.core.ConfigurableEmbedder
public abstract class ConfigurableEmbedder
Abstract implementation of Embeddable
which allow to configure
the Embedder
used to run the story or stories, using the
Configuration
and the CandidateSteps
specified.
By default MostUsefulConfiguration
) is used and be overridden
via the useConfiguration(Configuration)
method.
Users need to specify the InjectableStepsFactory
which will be
used to create the CandidateSteps
.
Typically, users that use JUnit will find it easier to extend other
implementations, such as JUnitStory
or JUnitStories
, which
implement the using the configured embedder and annotate it
with JUnit's Test
annotation.
Constructor Summary | |
---|---|
ConfigurableEmbedder()
|
Method Summary | |
---|---|
void |
addSteps(CandidateSteps... steps)
Deprecated. Use useStepsFactory(InjectableStepsFactory) |
void |
addSteps(List<CandidateSteps> steps)
Deprecated. Use useStepsFactory(InjectableStepsFactory) |
List<CandidateSteps> |
candidateSteps()
Deprecated. Use stepsFactory() |
Configuration |
configuration()
|
Embedder |
configuredEmbedder()
|
InjectableStepsFactory |
stepsFactory()
|
void |
useConfiguration(Configuration configuration)
|
void |
useEmbedder(Embedder embedder)
|
void |
useStepsFactory(InjectableStepsFactory stepsFactory)
|
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.Embeddable |
---|
run |
Constructor Detail |
---|
public ConfigurableEmbedder()
Method Detail |
---|
public void useEmbedder(Embedder embedder)
useEmbedder
in interface Embeddable
public void useConfiguration(Configuration configuration)
public Configuration configuration()
public void addSteps(CandidateSteps... steps)
useStepsFactory(InjectableStepsFactory)
public void addSteps(List<CandidateSteps> steps)
useStepsFactory(InjectableStepsFactory)
public List<CandidateSteps> candidateSteps()
stepsFactory()
public void useStepsFactory(InjectableStepsFactory stepsFactory)
public InjectableStepsFactory stepsFactory()
public Embedder configuredEmbedder()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |