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
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.tngtech.jgiven.impl.Scenario<GIVEN_WHEN,
GIVEN_WHEN, THEN> Methods inherited from class com.tngtech.jgiven.base.ScenarioTestBase
addStage, createNewScenario, getScenario, given, section, then, when, wireSteps
-
Constructor Details
-
DualScenarioTestBase
public DualScenarioTestBase()
-
-
Method Details
-
createScenario
- Overrides:
createScenario
in classScenarioTestBase<GIVEN_WHEN,
GIVEN_WHEN, THEN>
-