|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbehave.core.StoryConfiguration
public class StoryConfiguration
Provides the story configuration used by the StoryRunner
and the
in the RunnableStory
implementations to customise its runtime properties.
StoryConfiguration dependencies can be provided either via constructor or via use* methods, which override the the default values of the dependency, which is always set. 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 Summary | |
---|---|
|
StoryConfiguration()
Default no-op constructor, uses the default instances defined for member variables. |
protected |
StoryConfiguration(Keywords keywords,
StepCreator stepCreator,
StoryParser storyParser,
StoryLoader storyLoader,
StoryPathResolver storyPathResolver,
ErrorStrategy errorStrategy,
StepdocReporter stepdocReporter,
StepdocGenerator stepdocGenerator,
StoryReporter storyReporter,
StoryReporterBuilder storyReporterBuilder,
PendingErrorStrategy pendingErrorStrategy)
Constructor that allows all dependencies to be injected |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StoryConfiguration()
protected StoryConfiguration(Keywords keywords, StepCreator stepCreator, StoryParser storyParser, StoryLoader storyLoader, StoryPathResolver storyPathResolver, ErrorStrategy errorStrategy, StepdocReporter stepdocReporter, StepdocGenerator stepdocGenerator, StoryReporter storyReporter, StoryReporterBuilder storyReporterBuilder, PendingErrorStrategy pendingErrorStrategy)
keywords
- stepCreator
- storyParser
- storyLoader
- storyPathResolver
- errorStrategy
- stepdocReporter
- stepdocGenerator
- storyReporter
- storyReporterBuilder
- pendingErrorStrategy
- Method Detail |
---|
public StepCreator stepCreator()
public StoryParser storyParser()
public StoryLoader storyLoader()
public StoryPathResolver storyPathResolver()
public ErrorStrategy errorStrategy()
public PendingErrorStrategy pendingErrorStrategy()
public StoryReporter storyReporter()
public StoryReporter storyReporter(java.lang.String storyPath)
public StoryReporterBuilder storyReporterBuilder()
public Keywords keywords()
public StepdocGenerator stepdocGenerator()
public StepdocReporter stepdocReporter()
public StoryConfiguration useKeywords(Keywords keywords)
public StoryConfiguration useStepCreator(StepCreator stepCreator)
public StoryConfiguration usePendingErrorStrategy(PendingErrorStrategy pendingErrorStrategy)
public StoryConfiguration useErrorStrategy(ErrorStrategy errorStrategy)
public StoryConfiguration useStoryParser(StoryParser storyParser)
public StoryConfiguration useStoryLoader(StoryLoader storyLoader)
public StoryConfiguration useStoryPathResolver(StoryPathResolver storyPathResolver)
public StoryConfiguration useStoryReporter(StoryReporter storyReporter)
public StoryConfiguration useStoryReporter(java.lang.String storyPath, StoryReporter storyReporter)
public StoryConfiguration useStoryReporters(java.util.Map<java.lang.String,StoryReporter> storyReporters)
public StoryConfiguration useStoryReporterBuilder(StoryReporterBuilder storyReporterBuilder)
public StoryConfiguration buildReporters(java.lang.String... storyPaths)
public StoryConfiguration buildReporters(java.util.List<java.lang.String> storyPaths)
public StoryConfiguration useStepdocReporter(StepdocReporter stepdocReporter)
public StoryConfiguration useStepdocGenerator(StepdocGenerator stepdocGenerator)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |