Package org.jbehave.core.embedder
Class Embedder
- java.lang.Object
-
- org.jbehave.core.embedder.Embedder
-
public class Embedder extends Object
The Embedder is a facade allowing all functionality to be embedded into other run contexts, such as IDEs (e.g. via JUnit support) or CLIs (via Ant or Maven).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEmbedder.AnnotatedEmbedderRunFailedstatic interfaceEmbedder.EmbedderFailureStrategystatic classEmbedder.RunningEmbeddablesFailedstatic classEmbedder.RunningStoriesFailedstatic classEmbedder.ThrowingRunningStoriesFailedstatic classEmbedder.ViewGenerationFailed
-
Field Summary
Fields Modifier and Type Field Description protected EmbedderClassLoaderclassLoaderprotected Configurationconfigurationprotected EmbedderControlsembedderControlsprotected Embedder.EmbedderFailureStrategyembedderFailureStrategyprotected EmbedderMonitorembedderMonitorprotected ExecutorServiceexecutorServiceprotected booleanexecutorServiceCreatedprotected List<String>metaFiltersprotected Map<String,MetaFilter.MetaMatcher>metaMatchersprotected PerformableTreeperformableTreeprotected InjectableStepsFactorystepsFactoryprotected StoryManagerstoryManagerprotected StoryMapperstoryMapperprotected PropertiessystemPropertiesprotected StoryTimeouts.TimeoutParser[]timeoutParsers
-
Constructor Summary
Constructors Constructor Description Embedder()Embedder(EmbedderMonitor embedderMonitor)Embedder(StoryMapper storyMapper, PerformableTree performableTree, EmbedderMonitor embedderMonitor)
-
Method Summary
-
-
-
Field Detail
-
storyMapper
protected StoryMapper storyMapper
-
embedderMonitor
protected EmbedderMonitor embedderMonitor
-
classLoader
protected EmbedderClassLoader classLoader
-
embedderControls
protected EmbedderControls embedderControls
-
embedderFailureStrategy
protected Embedder.EmbedderFailureStrategy embedderFailureStrategy
-
configuration
protected Configuration configuration
-
stepsFactory
protected InjectableStepsFactory stepsFactory
-
metaMatchers
protected Map<String,MetaFilter.MetaMatcher> metaMatchers
-
systemProperties
protected Properties systemProperties
-
executorService
protected ExecutorService executorService
-
executorServiceCreated
protected boolean executorServiceCreated
-
performableTree
protected PerformableTree performableTree
-
storyManager
protected StoryManager storyManager
-
timeoutParsers
protected StoryTimeouts.TimeoutParser[] timeoutParsers
-
-
Constructor Detail
-
Embedder
public Embedder()
-
Embedder
public Embedder(EmbedderMonitor embedderMonitor)
-
Embedder
public Embedder(StoryMapper storyMapper, PerformableTree performableTree, EmbedderMonitor embedderMonitor)
-
-
Method Detail
-
runStoriesWithAnnotatedEmbedderRunner
public void runStoriesWithAnnotatedEmbedderRunner(List<String> classNames)
-
generateReportsView
public void generateReportsView()
-
generateReportsView
public void generateReportsView(File outputDirectory, List<String> formats, Properties viewResources)
-
generateSurefireReport
public void generateSurefireReport()
-
reportStepdocs
public void reportStepdocs()
-
reportStepdocs
public void reportStepdocs(Configuration configuration, List<CandidateSteps> candidateSteps)
-
reportMatchingStepdocs
public void reportMatchingStepdocs(String stepAsString)
-
processSystemProperties
public void processSystemProperties()
-
classLoader
public EmbedderClassLoader classLoader()
-
configuration
public Configuration configuration()
-
stepsFactory
public InjectableStepsFactory stepsFactory()
-
embedderControls
public EmbedderControls embedderControls()
-
embedderMonitor
public EmbedderMonitor embedderMonitor()
-
embedderFailureStrategy
public Embedder.EmbedderFailureStrategy embedderFailureStrategy()
-
hasExecutorService
public boolean hasExecutorService()
-
executorService
public ExecutorService executorService()
-
shutdownExecutorService
protected void shutdownExecutorService()
Shuts down executor service, if it was created by Embedder. ExecutorServices provided by theuseExecutorService(ExecutorService)need to be managed by the provider.
-
storyManager
public StoryManager storyManager()
-
configureThreads
protected void configureThreads(Configuration configuration, int threads)
-
metaMatchers
public Map<String,MetaFilter.MetaMatcher> metaMatchers()
-
metaFilter
public MetaFilter metaFilter()
-
performableTree
public PerformableTree performableTree()
-
systemProperties
public Properties systemProperties()
-
timeoutParsers
public StoryTimeouts.TimeoutParser[] timeoutParsers()
-
useClassLoader
public void useClassLoader(EmbedderClassLoader classLoader)
-
useConfiguration
public void useConfiguration(Configuration configuration)
-
useStepsFactory
public void useStepsFactory(InjectableStepsFactory stepsFactory)
-
useEmbedderControls
public void useEmbedderControls(EmbedderControls embedderControls)
-
useEmbedderFailureStrategy
public void useEmbedderFailureStrategy(Embedder.EmbedderFailureStrategy failureStategy)
-
useEmbedderMonitor
public void useEmbedderMonitor(EmbedderMonitor embedderMonitor)
-
useExecutorService
public void useExecutorService(ExecutorService executorService)
-
useMetaMatchers
public void useMetaMatchers(Map<String,MetaFilter.MetaMatcher> metaMatchers)
-
usePerformableTree
public void usePerformableTree(PerformableTree performableTree)
-
useSystemProperties
public void useSystemProperties(Properties systemProperties)
-
useTimeoutParsers
public void useTimeoutParsers(StoryTimeouts.TimeoutParser... timeoutParsers)
-
-