org.jbehave.core
Class ConfigurableEmbedder
java.lang.Object
org.jbehave.core.ConfigurableEmbedder
- All Implemented Interfaces:
- Embeddable
- Direct Known Subclasses:
- JUnitStories, JUnitStory, JUnitStoryMaps
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 add the CandidateSteps
instances, via the
addSteps(CandidateSteps...)
or #addSteps(List)
methods.
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurableEmbedder
public ConfigurableEmbedder()
useEmbedder
public void useEmbedder(Embedder embedder)
- Specified by:
useEmbedder
in interface Embeddable
useConfiguration
public void useConfiguration(Configuration configuration)
addSteps
public void addSteps(CandidateSteps... steps)
addSteps
public void addSteps(List<CandidateSteps> steps)
useStepsFactory
public void useStepsFactory(InjectableStepsFactory stepsFactory)
configuration
public Configuration configuration()
candidateSteps
public List<CandidateSteps> candidateSteps()
stepsFactory
public InjectableStepsFactory stepsFactory()
configuredEmbedder
public Embedder configuredEmbedder()
Copyright © 2003-2012. All Rights Reserved.