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
-
public class PropertyBasedConfiguration extends MostUsefulConfiguration
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
Fields Modifier and Type Field Description static StringFAIL_ON_PENDINGstatic StringSILENT_SUCCESS-
Fields inherited from class org.jbehave.core.configuration.Configuration
aliasParser, aliasPaths, compositeParser, compositePaths, defaultStoryReporter, examplesTableFactory, 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 Constructor Description PropertyBasedConfiguration()
-
Method Summary
Modifier and Type Method Description StoryReporterdefaultStoryReporter()If the system propertySILENT_SUCCESSis set, uses aSilentSuccessFilterto decorate the default StoryReporter.PendingStepStrategypendingStepStrategy()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, 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, 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 Detail
-
FAIL_ON_PENDING
public static final String FAIL_ON_PENDING
- See Also:
- Constant Field Values
-
SILENT_SUCCESS
public static final String SILENT_SUCCESS
- See Also:
- Constant Field Values
-
-
Method Detail
-
defaultStoryReporter
public StoryReporter 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
public PendingStepStrategy 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
-
-