org.jbehave.core.configuration
Class PropertyBasedConfiguration

java.lang.Object
  extended by org.jbehave.core.configuration.Configuration
      extended by org.jbehave.core.configuration.MostUsefulConfiguration
          extended by 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:


Field Summary
static java.lang.String FAIL_ON_PENDING
           
static java.lang.String SILENT_SUCCESS
           
 
Constructor Summary
PropertyBasedConfiguration()
           
 
Method Summary
 StoryReporter defaultStoryReporter()
           If the system property SILENT_SUCCESS is set, uses a SilentSuccessFilter to decorate the default StoryReporter.
 PendingStepStrategy pendingStepStrategy()
           If the system property FAIL_ON_PENDING is set, returns FailingUponPendingStep otherwise returns the default.
 
Methods inherited from class org.jbehave.core.configuration.Configuration
doDryRun, dryRun, failureStrategy, keywords, parameterConverters, paranamer, stepCollector, stepdocReporter, stepFinder, stepMonitor, stepPatternParser, storyLoader, storyParser, storyPathResolver, storyReporter, storyReporterBuilder, useDefaultStoryReporter, useFailureStrategy, useKeywords, useParameterConverters, useParanamer, usePendingStepStrategy, useStepCollector, useStepdocReporter, useStepFinder, useStepMonitor, useStepPatternParser, useStoryLoader, useStoryParser, useStoryPathResolver, useStoryReporter, useStoryReporterBuilder, useStoryReporters, useViewGenerator, viewGenerator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FAIL_ON_PENDING

public static final java.lang.String FAIL_ON_PENDING
See Also:
Constant Field Values

SILENT_SUCCESS

public static final java.lang.String SILENT_SUCCESS
See Also:
Constant Field Values
Constructor Detail

PropertyBasedConfiguration

public PropertyBasedConfiguration()
Method Detail

defaultStoryReporter

public StoryReporter defaultStoryReporter()

If the system property SILENT_SUCCESS is set, uses a SilentSuccessFilter to decorate the default StoryReporter.

Setting SILENT_SUCCESS will only show the steps for all stories if the stories fail.

Overrides:
defaultStoryReporter in class Configuration

pendingStepStrategy

public PendingStepStrategy pendingStepStrategy()

If the system property FAIL_ON_PENDING is set, returns FailingUponPendingStep 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 class Configuration


Copyright © 2003-2010. All Rights Reserved.