|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbehave.core.configuration.Configuration
org.jbehave.core.configuration.MostUsefulConfiguration
org.jbehave.core.configuration.PropertyBasedConfiguration
public class PropertyBasedConfiguration
PropertyBasedConfiguration is backed by MostUsefulConfiguration as default, but has different behaviour if certain system properties are set:
FAIL_ON_PENDING: uses FailingUponPendingStepSILENT_SUCCESS: uses SilentSuccessFilter decorator
| Field Summary | |
|---|---|
static String |
FAIL_ON_PENDING
|
static String |
SILENT_SUCCESS
|
| Constructor Summary | |
|---|---|
PropertyBasedConfiguration()
|
|
| Method Summary | |
|---|---|
StoryReporter |
defaultStoryReporter()
Deprecated. Use StoryReporterBuilder() |
PendingStepStrategy |
pendingStepStrategy()
If the system property FAIL_ON_PENDING is set, returns
FailingUponPendingStep otherwise returns the default. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FAIL_ON_PENDING
public static final String SILENT_SUCCESS
| Constructor Detail |
|---|
public PropertyBasedConfiguration()
| Method Detail |
|---|
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.
defaultStoryReporter in class Configurationpublic 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.
pendingStepStrategy in class Configuration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||