org.jbehave.core.configuration
Class Configuration
java.lang.Object
org.jbehave.core.configuration.Configuration
- Direct Known Subclasses:
- MostUsefulConfiguration, UnmodifiableConfiguration
public abstract class Configuration
- extends java.lang.Object
Provides the configuration used by the Embedder
and the in the
Embeddable
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, toString, wait, wait, wait |
Configuration
public Configuration()
dryRun
public boolean dryRun()
keywords
public Keywords keywords()
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()
stepCollector
public StepCollector stepCollector()
stepFinder
public StepFinder stepFinder()
stepdocReporter
public StepdocReporter stepdocReporter()
stepPatternParser
public StepPatternParser stepPatternParser()
stepMonitor
public StepMonitor stepMonitor()
paranamer
public com.thoughtworks.paranamer.Paranamer paranamer()
parameterConverters
public ParameterConverters parameterConverters()
viewGenerator
public ViewGenerator viewGenerator()
doDryRun
public Configuration doDryRun(java.lang.Boolean dryRun)
useKeywords
public Configuration useKeywords(Keywords keywords)
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)
useStepCollector
public Configuration useStepCollector(StepCollector stepCollector)
useStepFinder
public Configuration useStepFinder(StepFinder stepFinder)
useStepdocReporter
public Configuration useStepdocReporter(StepdocReporter stepdocReporter)
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)
useViewGenerator
public void useViewGenerator(ViewGenerator viewGenerator)
Copyright © 2003-2010. All Rights Reserved.