Package org.jbehave.core.configuration
Class PropertyBasedConfiguration
java.lang.Object
org.jbehave.core.configuration.Configuration
org.jbehave.core.configuration.MostUsefulConfiguration
org.jbehave.core.configuration.PropertyBasedConfiguration
PropertyBasedConfiguration is backed by MostUsefulConfiguration as default,
but has different behaviour if certain system properties are set:
FAIL_ON_PENDING
: usesFailingUponPendingStep
SILENT_SUCCESS
: usesSilentSuccessFilter
decorator
-
Field Summary
Fields inherited from class org.jbehave.core.configuration.Configuration
aliasParser, aliasPaths, compositeParser, compositePaths, defaultStoryReporter, examplesTableFactory, expressionResolver, failureStrategy, keywords, parameterControls, parameterConverters, paranamer, pathCalculator, pendingStepStrategy, stepCollector, stepConditionMatcher, stepdocReporter, stepFinder, stepMonitor, stepPatternParser, stepsContext, storyControls, storyExecutionComparator, storyLoader, storyParser, storyPathResolver, storyReporterBuilder, tableParsers, tableTransformerMonitor, tableTransformers, viewGenerator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionIf the system propertySILENT_SUCCESS
is set, uses aSilentSuccessFilter
to decorate the default StoryReporter.If the system propertyFAIL_ON_PENDING
is set, returnsFailingUponPendingStep
otherwise returns the default.Methods inherited from class org.jbehave.core.configuration.Configuration
aliasParser, aliasPaths, compositeParser, compositePaths, doDryRun, dryRun, examplesTableFactory, expressionResolver, failureStrategy, isParallelStoryExamplesEnabled, keywords, parameterControls, parameterConverters, paranamer, pathCalculator, setParallelStoryExamplesEnabled, stepCollector, stepConditionMatcher, stepdocReporter, stepFinder, stepMonitor, stepPatternParser, stepsContext, storyControls, storyExecutionComparator, storyLoader, storyParser, storyPathResolver, storyReporter, storyReporterBuilder, tableParsers, tableTransformerMonitor, tableTransformers, useAliasParser, useAliasPaths, useCompositeParser, useCompositePaths, useDefaultStoryReporter, useExamplesTableFactory, useExpressionResolver, useFailureStrategy, useKeywords, useParameterControls, useParameterConverters, useParanamer, usePathCalculator, usePendingStepStrategy, useStepCollector, useStepConditionMatcher, useStepdocReporter, useStepFinder, useStepMonitor, useStepPatternParser, useStepsContext, useStoryControls, useStoryExecutionComparator, useStoryLoader, useStoryParser, useStoryPathResolver, useStoryReporterBuilder, useTableTransformerMonitor, useTableTransformers, useViewGenerator, viewGenerator
-
Field Details
-
FAIL_ON_PENDING
- See Also:
-
SILENT_SUCCESS
- See Also:
-
-
Constructor Details
-
PropertyBasedConfiguration
public PropertyBasedConfiguration()
-
-
Method Details
-
defaultStoryReporter
If the system property
SILENT_SUCCESS
is set, uses aSilentSuccessFilter
to decorate the default StoryReporter.Setting
SILENT_SUCCESS
will only show the steps for all stories if the stories fail.- Overrides:
defaultStoryReporter
in classConfiguration
-
pendingStepStrategy
If the system property
FAIL_ON_PENDING
is set, returnsFailingUponPendingStep
otherwise returns the default.Setting
FAIL_ON_PENDING
will cause pending steps to fail story execution, so you can see if any steps don't match or are still to be implemented.- Overrides:
pendingStepStrategy
in classConfiguration
-