public abstract class Configuration extends 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.
Modifier and Type | Field and Description |
---|---|
protected StoryReporter |
defaultStoryReporter
Reports stories to console output
|
protected FailureStrategy |
failureStrategy
Handles errors by re-throwing them.
|
protected Keywords |
keywords
Use English language for keywords
|
protected ParameterControls |
parameterControls
Controls of step parameterization
|
protected ParameterConverters |
parameterConverters
Use default built-in parameter converters
|
protected Paranamer |
paranamer
Paranamer is switched off by default
|
protected PathCalculator |
pathCalculator
Use an absolute path calculator
|
protected PendingStepStrategy |
pendingStepStrategy
Allows pending steps to pass, so that steps that to do not match any
method will not cause failure.
|
protected StepCollector |
stepCollector
Provides pending steps where unmatched steps exist.
|
protected StepdocReporter |
stepdocReporter
Report candidate steps found to a PrintStream
|
protected StepFinder |
stepFinder
Finder of matching candidate steps
|
protected StepMonitor |
stepMonitor
Silent monitoring that does not produce any noise of the step matching.
|
protected StepPatternParser |
stepPatternParser
Pattern build that uses prefix for identifying parameters
|
protected StoryControls |
storyControls
Use default story controls
|
protected StoryLoader |
storyLoader
Loads story content from classpath
|
protected StoryParser |
storyParser
Parses the textual representation via pattern matching of keywords
|
protected StoryPathResolver |
storyPathResolver
Resolves story paths from class names using underscored camel case with
".story" extension
|
protected StoryReporterBuilder |
storyReporterBuilder
The story reporter builder
|
protected ViewGenerator |
viewGenerator
Use Freemarker-based view generator
|
Constructor and Description |
---|
Configuration() |
protected StoryControls storyControls
protected Keywords keywords
protected StepCollector stepCollector
protected StoryParser storyParser
protected StoryLoader storyLoader
protected StoryPathResolver storyPathResolver
protected FailureStrategy failureStrategy
SilentlyAbsorbingFailure
.protected PendingStepStrategy pendingStepStrategy
FailingUponPendingStep
.protected StoryReporter defaultStoryReporter
protected StoryReporterBuilder storyReporterBuilder
protected StepFinder stepFinder
protected StepdocReporter stepdocReporter
protected StepPatternParser stepPatternParser
protected ParameterControls parameterControls
protected StepMonitor stepMonitor
PrintStreamStepMonitor
protected Paranamer paranamer
protected ParameterConverters parameterConverters
protected ViewGenerator viewGenerator
protected PathCalculator pathCalculator
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(String storyPath)
public StoryReporterBuilder storyReporterBuilder()
public StepCollector stepCollector()
public StepFinder stepFinder()
public StepdocReporter stepdocReporter()
public StepPatternParser stepPatternParser()
public ParameterControls parameterControls()
public StepMonitor stepMonitor()
public Paranamer paranamer()
public ParameterConverters parameterConverters()
public ViewGenerator viewGenerator()
public PathCalculator pathCalculator()
public Configuration useKeywords(Keywords keywords)
public Configuration doDryRun(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(Paranamer paranamer)
public Configuration useParameterConverters(ParameterConverters parameterConverters)
public Configuration useViewGenerator(ViewGenerator viewGenerator)
public Configuration usePathCalculator(PathCalculator pathCalculator)
Copyright © 2003–2015. All rights reserved.