|
||||||||||
| 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(String word)
|
|
|
addStage(Class<T> stepsClass)
|
|
void |
failed(Throwable e)
|
|
void |
failIfPass()
|
|
void |
finished()
Has to be called when the scenario is finished in order to execute after methods. |
|
void |
injectSteps(Object stage)
|
|
void |
readScenarioState(Object object)
|
|
void |
setListener(ScenarioListener listener)
|
|
void |
startScenario(Method method,
List<NamedArgument> arguments)
Starts the scenario with the given method and arguments. |
|
void |
startScenario(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(Class<T> stepsClass)
public void addIntroWord(String word)
public void readScenarioState(Object object)
public void wireSteps(CanWire canWire)
public void finished()
throws Throwable
Throwablepublic void injectSteps(Object stage)
public void failed(Throwable e)
public void startScenario(String description)
description - the description of the scenario
public void startScenario(Method method,
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 | |||||||||