Class ScenarioTest<GIVEN,​WHEN,​THEN>

  • Type Parameters:
    GIVEN - the GIVEN stage
    WHEN - the WHEN stage
    THEN - the THEN stage

    public class ScenarioTest<GIVEN,​WHEN,​THEN>
    extends com.tngtech.jgiven.base.ScenarioTestBase<GIVEN,​WHEN,​THEN>
    Convenience test base class for writing JGiven scenarios with JUnit 5. If you only have one stage class you can also use the SimpleScenarioTest class. If you don't want to inherit from any class you can just use the JGivenExtension directly.
    See Also:
    JGivenExtension, SimpleScenarioTest
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.tngtech.jgiven.impl.Scenario<GIVEN,​WHEN,​THEN> getScenario()  
      • Methods inherited from class com.tngtech.jgiven.base.ScenarioTestBase

        addStage, createNewScenario, createScenario, given, section, then, when, wireSteps
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScenarioTest

        public ScenarioTest()
    • Method Detail

      • getScenario

        public com.tngtech.jgiven.impl.Scenario<GIVEN,​WHEN,​THEN> getScenario()
        Specified by:
        getScenario in class com.tngtech.jgiven.base.ScenarioTestBase<GIVEN,​WHEN,​THEN>