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: usesFailingUponPendingStepSILENT_SUCCESS: usesSilentSuccessFilterdecorator
-
Field Summary
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIf the system propertySILENT_SUCCESSis set, uses aSilentSuccessFilterto decorate the default StoryReporter.If the system propertyFAIL_ON_PENDINGis set, returnsFailingUponPendingStepotherwise 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_SUCCESSis set, uses aSilentSuccessFilterto decorate the default StoryReporter.Setting
SILENT_SUCCESSwill only show the steps for all stories if the stories fail.- Overrides:
defaultStoryReporterin classConfiguration
-
pendingStepStrategy
If the system property
FAIL_ON_PENDINGis set, returnsFailingUponPendingStepotherwise returns the default.Setting
FAIL_ON_PENDINGwill cause pending steps to fail story execution, so you can see if any steps don't match or are still to be implemented.- Overrides:
pendingStepStrategyin classConfiguration
-