|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.tngtech.jgiven.impl.ScenarioExecutor
public class ScenarioExecutor
Main class of JGiven for executing scenarios.
| Nested Class Summary | |
|---|---|
static class |
ScenarioExecutor.State
|
| Constructor Summary | |
|---|---|
ScenarioExecutor()
|
|
| Method Summary | ||
|---|---|---|
void |
addIntroWord(java.lang.String word)
|
|
|
addStage(java.lang.Class<T> stepsClass)
|
|
void |
failed(java.lang.Throwable e)
|
|
void |
failIfPass()
|
|
void |
finished()
Has to be called when the scenario is finished in order to execute after methods. |
|
void |
injectSteps(java.lang.Object stage)
|
|
void |
readScenarioState(java.lang.Object object)
|
|
void |
setListener(ScenarioListener listener)
|
|
void |
startScenario(java.lang.reflect.Method method,
java.util.List<NamedArgument> arguments)
Starts the scenario with the given method and arguments. |
|
void |
startScenario(java.lang.String description)
Starts a scenario with the given description. |
|
void |
wireSteps(CanWire canWire)
Used for DI frameworks to inject values into stages. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScenarioExecutor()
| Method Detail |
|---|
public <T> T addStage(java.lang.Class<T> stepsClass)
public void addIntroWord(java.lang.String word)
public void readScenarioState(java.lang.Object object)
public void wireSteps(CanWire canWire)
public void finished()
throws java.lang.Throwable
java.lang.Throwablepublic void injectSteps(java.lang.Object stage)
public void failed(java.lang.Throwable e)
public void startScenario(java.lang.String description)
description - the description of the scenario
public void startScenario(java.lang.reflect.Method method,
java.util.List<NamedArgument> arguments)
method - the method that started the scenarioarguments - the test arguments with their parameter namespublic void setListener(ScenarioListener listener)
public void failIfPass()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||