Package com.tngtech.jgiven.base
Class DualScenarioTestBase<GIVEN_WHEN,THEN>
- java.lang.Object
-
- com.tngtech.jgiven.base.ScenarioTestBase<GIVEN_WHEN,GIVEN_WHEN,THEN>
-
- com.tngtech.jgiven.base.DualScenarioTestBase<GIVEN_WHEN,THEN>
-
public abstract class DualScenarioTestBase<GIVEN_WHEN,THEN> extends ScenarioTestBase<GIVEN_WHEN,GIVEN_WHEN,THEN>
ScenarioTest that only takes two type parameters, where the first is used for combined GIVEN and WHEN and the second is used for THEN. This is useful for tests, where you often need to use WHEN steps also in GIVEN statements. This class is typically not directly used by end users, but instead test-framework-specific classes for JUnit or TestNG
-
-
Constructor Summary
Constructors Constructor Description DualScenarioTestBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.tngtech.jgiven.impl.Scenario<GIVEN_WHEN,GIVEN_WHEN,THEN>
createScenario()
-
Methods inherited from class com.tngtech.jgiven.base.ScenarioTestBase
addStage, createNewScenario, getScenario, given, section, then, when, wireSteps
-
-
-
-
Method Detail
-
createScenario
protected com.tngtech.jgiven.impl.Scenario<GIVEN_WHEN,GIVEN_WHEN,THEN> createScenario()
- Overrides:
createScenario
in classScenarioTestBase<GIVEN_WHEN,GIVEN_WHEN,THEN>
-
-