public abstract class ScenarioTestBase<GIVEN,WHEN,THEN>
extends java.lang.Object
Constructor and Description |
---|
ScenarioTestBase() |
Modifier and Type | Method and Description |
---|---|
<T> T |
addStage(java.lang.Class<T> stageClass)
Add a new stage class to the scenario.
|
com.tngtech.jgiven.impl.Scenario<GIVEN,WHEN,THEN> |
createNewScenario() |
protected com.tngtech.jgiven.impl.Scenario<GIVEN,WHEN,THEN> |
createScenario() |
abstract com.tngtech.jgiven.impl.Scenario<GIVEN,WHEN,THEN> |
getScenario() |
GIVEN |
given() |
void |
section(java.lang.String sectionTitle)
Adds a new section to the scenario
|
THEN |
then() |
WHEN |
when() |
void |
wireSteps(CanWire canWire) |
public GIVEN given()
public WHEN when()
public THEN then()
public void section(java.lang.String sectionTitle)
sectionTitle
- the title of the sectionpublic void wireSteps(CanWire canWire)
public <T> T addStage(java.lang.Class<T> stageClass)
stageClass
- the class with the step definitionspublic abstract com.tngtech.jgiven.impl.Scenario<GIVEN,WHEN,THEN> getScenario()