org.jbehave.core
Class ConfigurableEmbedder

java.lang.Object
  extended by org.jbehave.core.ConfigurableEmbedder
All Implemented Interfaces:
Embeddable
Direct Known Subclasses:
JUnitStories, JUnitStory

public abstract class ConfigurableEmbedder
extends java.lang.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.


Constructor Summary
ConfigurableEmbedder()
           
 
Method Summary
 void addSteps(CandidateSteps... steps)
           
 void addSteps(java.util.List<CandidateSteps> steps)
           
 java.util.List<CandidateSteps> candidateSteps()
           
 Configuration configuration()
           
 Embedder configuredEmbedder()
           
 void useConfiguration(Configuration configuration)
           
 void useEmbedder(Embedder embedder)
           
 
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

ConfigurableEmbedder

public ConfigurableEmbedder()
Method Detail

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(java.util.List<CandidateSteps> steps)

configuration

public Configuration configuration()

candidateSteps

public java.util.List<CandidateSteps> candidateSteps()

configuredEmbedder

public Embedder configuredEmbedder()


Copyright © 2003-2010. All Rights Reserved.