Package org.jbehave.core.model
Class Lifecycle
- java.lang.Object
-
- org.jbehave.core.model.Lifecycle
-
public class Lifecycle extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Lifecycle.ExecutionType
static class
Lifecycle.Steps
-
Constructor Summary
Constructors Constructor Description Lifecycle()
Lifecycle(List<Lifecycle.Steps> before, List<Lifecycle.Steps> after)
Lifecycle(ExamplesTable examplesTable)
Lifecycle(ExamplesTable examplesTable, List<Lifecycle.Steps> before, List<Lifecycle.Steps> after)
-
Method Summary
Modifier and Type Method Description List<Lifecycle.Steps>
getAfter()
List<String>
getAfterSteps()
List<String>
getAfterSteps(AfterScenario.Outcome outcome)
List<String>
getAfterSteps(AfterScenario.Outcome outcome, Meta meta)
List<String>
getAfterSteps(Scope scope)
List<String>
getAfterSteps(Scope scope, AfterScenario.Outcome outcome)
List<String>
getAfterSteps(Scope scope, AfterScenario.Outcome outcome, Meta meta)
List<Lifecycle.Steps>
getBefore()
List<String>
getBeforeSteps()
List<String>
getBeforeSteps(Scope scope)
ExamplesTable
getExamplesTable()
MetaFilter
getMetaFilter(AfterScenario.Outcome outcome)
Set<AfterScenario.Outcome>
getOutcomes()
Set<Scope>
getScopes()
boolean
hasAfterSteps()
boolean
hasBeforeSteps()
boolean
isEmpty()
String
toString()
-
-
-
Field Detail
-
EMPTY
public static final Lifecycle EMPTY
-
-
Constructor Detail
-
Lifecycle
public Lifecycle()
-
Lifecycle
public Lifecycle(ExamplesTable examplesTable)
-
Lifecycle
public Lifecycle(List<Lifecycle.Steps> before, List<Lifecycle.Steps> after)
-
Lifecycle
public Lifecycle(ExamplesTable examplesTable, List<Lifecycle.Steps> before, List<Lifecycle.Steps> after)
-
-
Method Detail
-
getExamplesTable
public ExamplesTable getExamplesTable()
-
hasBeforeSteps
public boolean hasBeforeSteps()
-
getBefore
public List<Lifecycle.Steps> getBefore()
-
hasAfterSteps
public boolean hasAfterSteps()
-
getAfterSteps
public List<String> getAfterSteps(AfterScenario.Outcome outcome)
-
getAfterSteps
public List<String> getAfterSteps(AfterScenario.Outcome outcome, Meta meta)
-
getAfterSteps
public List<String> getAfterSteps(Scope scope, AfterScenario.Outcome outcome)
-
getAfterSteps
public List<String> getAfterSteps(Scope scope, AfterScenario.Outcome outcome, Meta meta)
-
getAfter
public List<Lifecycle.Steps> getAfter()
-
getOutcomes
public Set<AfterScenario.Outcome> getOutcomes()
-
getMetaFilter
public MetaFilter getMetaFilter(AfterScenario.Outcome outcome)
-
isEmpty
public boolean isEmpty()
-
-