org.jbehave.core.configuration
Class Configuration
java.lang.Object
org.jbehave.core.configuration.Configuration
- Direct Known Subclasses:
- MostUsefulConfiguration, UnmodifiableConfiguration
public class Configuration
- extends java.lang.Object
Provides the configuration used by the Embedder and the in the
RunnableStory implementations to customise its runtime properties.
Configuration implements a Builder pattern so
that each element of the configuration can be specified individually, and
read well. All elements have default values, which can be overridden by the
"use" methods. The "use" methods allow to override the dependencies one by
one and play nicer with a Java hierarchical structure, in that does allow the
use of non-static member variables.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Configuration
public Configuration()
candidateStepFinder
public CandidateStepFinder candidateStepFinder()
candidateStepReporter
public CandidateStepReporter candidateStepReporter()
dryRun
public boolean dryRun()
keywords
public Keywords keywords()
stepCollector
public StepCollector stepCollector()
storyParser
public StoryParser storyParser()
storyLoader
public StoryLoader storyLoader()
storyPathResolver
public StoryPathResolver storyPathResolver()
failureStrategy
public FailureStrategy failureStrategy()
pendingStepStrategy
public PendingStepStrategy pendingStepStrategy()
defaultStoryReporter
public StoryReporter defaultStoryReporter()
storyReporter
public StoryReporter storyReporter(java.lang.String storyPath)
storyReporterBuilder
public StoryReporterBuilder storyReporterBuilder()
stepPatternParser
public StepPatternParser stepPatternParser()
stepMonitor
public StepMonitor stepMonitor()
paranamer
public com.thoughtworks.paranamer.Paranamer paranamer()
parameterConverters
public ParameterConverters parameterConverters()
stepdocGenerator
public StepdocGenerator stepdocGenerator()
stepdocReporter
public StepdocReporter stepdocReporter()
viewGenerator
public ViewGenerator viewGenerator()
embedderControls
public EmbedderControls embedderControls()
useCandidateStepFinder
public void useCandidateStepFinder(CandidateStepFinder candidateStepFinder)
useCandidateStepReporter
public void useCandidateStepReporter(CandidateStepReporter candidateStepReporter)
doDryRun
public void doDryRun(boolean dryRun)
useKeywords
public Configuration useKeywords(Keywords keywords)
useStepCollector
public Configuration useStepCollector(StepCollector stepCollector)
usePendingStepStrategy
public Configuration usePendingStepStrategy(PendingStepStrategy pendingStepStrategy)
useFailureStrategy
public Configuration useFailureStrategy(FailureStrategy failureStrategy)
useStoryParser
public Configuration useStoryParser(StoryParser storyParser)
useStoryLoader
public Configuration useStoryLoader(StoryLoader storyLoader)
useStoryPathResolver
public Configuration useStoryPathResolver(StoryPathResolver storyPathResolver)
useDefaultStoryReporter
public Configuration useDefaultStoryReporter(StoryReporter storyReporter)
useStoryReporter
public Configuration useStoryReporter(java.lang.String storyPath,
StoryReporter storyReporter)
useStoryReporters
public Configuration useStoryReporters(java.util.Map<java.lang.String,StoryReporter> storyReporters)
useStoryReporterBuilder
public Configuration useStoryReporterBuilder(StoryReporterBuilder storyReporterBuilder)
useEmbedderControls
public Configuration useEmbedderControls(EmbedderControls embedderControls)
useStepPatternParser
public Configuration useStepPatternParser(StepPatternParser stepPatternParser)
useStepMonitor
public Configuration useStepMonitor(StepMonitor stepMonitor)
useParanamer
public Configuration useParanamer(com.thoughtworks.paranamer.Paranamer paranamer)
useParameterConverters
public Configuration useParameterConverters(ParameterConverters parameterConverters)
useStepdocGenerator
public void useStepdocGenerator(StepdocGenerator stepdocGenerator)
useStepdocReporter
public void useStepdocReporter(StepdocReporter stepdocReporter)
useViewGenerator
public void useViewGenerator(ViewGenerator viewGenerator)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2003-2010. All Rights Reserved.