Class ScenarioTestBase<GIVEN,​WHEN,​THEN>

    • Constructor Detail

      • ScenarioTestBase

        public ScenarioTestBase()
    • Method Detail

      • createScenario

        protected com.tngtech.jgiven.impl.Scenario<GIVEN,​WHEN,​THEN> createScenario()
      • given

        public GIVEN given()
      • when

        public WHEN when()
      • then

        public THEN then()
      • section

        public void section​(java.lang.String sectionTitle)
        Adds a new section to the scenario

        EXPERIMENTAL FEATURE

        This is an experimental feature. It might change in the future. If you have any feedback regarding this feature, please let us know by creating an issue at https://github.com/TNG/JGiven/issues
        Parameters:
        sectionTitle - the title of the section
        Since:
        0.11.0
      • wireSteps

        public void wireSteps​(CanWire canWire)
      • addStage

        public <T> T addStage​(java.lang.Class<T> stageClass)
        Add a new stage class to the scenario.
        Parameters:
        stageClass - the class with the step definitions
        Returns:
        a new instance of the given class enhanced by JGiven
      • getScenario

        public abstract com.tngtech.jgiven.impl.Scenario<GIVEN,​WHEN,​THEN> getScenario()
        Returns:
        the scenario associated with this test
      • createNewScenario

        public com.tngtech.jgiven.impl.Scenario<GIVEN,​WHEN,​THEN> createNewScenario()