public abstract class ConfigurableEmbedder extends Object implements Embeddable
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 and Description |
|---|
ConfigurableEmbedder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSteps(CandidateSteps... steps)
Deprecated.
|
void |
addSteps(List<CandidateSteps> steps)
Deprecated.
|
List<CandidateSteps> |
candidateSteps()
Deprecated.
Use
stepsFactory() |
Configuration |
configuration() |
Embedder |
configuredEmbedder() |
InjectableStepsFactory |
stepsFactory() |
void |
useConfiguration(Configuration configuration) |
void |
useEmbedder(Embedder embedder) |
void |
useStepsFactory(InjectableStepsFactory stepsFactory) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrunpublic void useEmbedder(Embedder embedder)
useEmbedder in interface Embeddablepublic 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()
Copyright © 2003-2013. All Rights Reserved.