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.
Constructor and Description |
---|
Configuration() |
public Keywords keywords()
public boolean dryRun()
public StoryControls storyControls()
public StoryParser storyParser()
public StoryLoader storyLoader()
public StoryPathResolver storyPathResolver()
public FailureStrategy failureStrategy()
public PendingStepStrategy pendingStepStrategy()
public StoryReporter defaultStoryReporter()
StoryReporterBuilder
public StoryReporter storyReporter(java.lang.String storyPath)
public StoryReporterBuilder storyReporterBuilder()
public StepCollector stepCollector()
public StepFinder stepFinder()
public StepdocReporter stepdocReporter()
public StepPatternParser stepPatternParser()
public ParameterControls parameterControls()
public StepMonitor stepMonitor()
public com.thoughtworks.paranamer.Paranamer paranamer()
public ParameterConverters parameterConverters()
public ViewGenerator viewGenerator()
public PathCalculator pathCalculator()
public Configuration useKeywords(Keywords keywords)
public Configuration doDryRun(java.lang.Boolean dryRun)
public Configuration useStoryControls(StoryControls storyControls)
public Configuration usePendingStepStrategy(PendingStepStrategy pendingStepStrategy)
public Configuration useFailureStrategy(FailureStrategy failureStrategy)
public Configuration useStoryParser(StoryParser storyParser)
public Configuration useStoryLoader(StoryLoader storyLoader)
public Configuration useStoryPathResolver(StoryPathResolver storyPathResolver)
public Configuration useDefaultStoryReporter(StoryReporter storyReporter)
public Configuration useStoryReporterBuilder(StoryReporterBuilder storyReporterBuilder)
public Configuration useStepCollector(StepCollector stepCollector)
public Configuration useStepFinder(StepFinder stepFinder)
public Configuration useStepdocReporter(StepdocReporter stepdocReporter)
public Configuration useStepPatternParser(StepPatternParser stepPatternParser)
public Configuration useParameterControls(ParameterControls parameterControls)
public Configuration useStepMonitor(StepMonitor stepMonitor)
public Configuration useParanamer(com.thoughtworks.paranamer.Paranamer paranamer)
public Configuration useParameterConverters(ParameterConverters parameterConverters)
public Configuration useViewGenerator(ViewGenerator viewGenerator)
public Configuration usePathCalculator(PathCalculator pathCalculator)
Copyright © 2003-2014. All Rights Reserved.