public class ScenarioExecutor extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ScenarioExecutor.State |
| Constructor and Description |
|---|
ScenarioExecutor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addIntroWord(String word) |
<T> T |
addStage(Class<T> stepsClass) |
void |
failed(Throwable e) |
void |
finished()
Has to be called when the scenario is finished in order to execute after methods
|
Date |
getStartDate() |
void |
injectSteps(Object object) |
<T> void |
injectValueByType(Class<T> clazz,
T idGenerator) |
void |
readScenarioState(Object object) |
void |
setListener(ScenarioListener listener) |
void |
startScenario(Method method,
List<?> arguments)
Starts the scenario with the given method and arguments.
|
void |
startScenario(String description)
Starts a scenario with the given description.
|
void |
succeeded() |
<T> T |
when(T whenStage) |
void |
wireSteps(CanWire canWire)
Used for DI frameworks to inject values into stages
|
public <T> T addStage(Class<T> stepsClass)
public void addIntroWord(String word)
public <T> T when(T whenStage)
public <T> void injectValueByType(Class<T> clazz, T idGenerator)
public void readScenarioState(Object object)
public Date getStartDate()
public void wireSteps(CanWire canWire)
public void finished()
public void injectSteps(Object object)
public void succeeded()
public void failed(Throwable e)
public void startScenario(String description)
description - the description of the scenariopublic void startScenario(Method method, List<?> arguments)
method - the method that started the scenarioarguments - the arguments of the method invocationpublic void setListener(ScenarioListener listener)
Copyright © 2014 TNG Technology Consulting. All rights reserved.