java.lang.Object
net.thucydides.core.requirements.model.cucumber.NamedScenario
Direct Known Subclasses:
IdentifiedScenario, UnknownScenario

public abstract class NamedScenario
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    NamedScenario()  
  • Method Summary

    Modifier and Type Method Description
    abstract java.util.Optional<java.lang.String> asExampleTable()
    Return the example table part of the scenario outline
    abstract java.util.Optional<java.lang.String> asExampleTable​(ScenarioDisplayOption displayOption)
    Return the example table part of the scenario outline
    abstract java.util.Optional<java.lang.String> asGivenWhenThen()  
    abstract java.util.Optional<java.lang.String> asGivenWhenThen​(ScenarioDisplayOption displayOption)
    Return the Given..When..Then part of the scenario
    static NamedScenario forScenarioDefinition​(io.cucumber.messages.Messages.GherkinDocument.Feature feature, io.cucumber.messages.Messages.GherkinDocument.Feature.Scenario scenarioDefinition)  
    static NamedScenario withNoMatchingScenario()  

    Methods inherited from class java.lang.Object

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

    • NamedScenario

      public NamedScenario()
  • Method Details

    • forScenarioDefinition

      public static NamedScenario forScenarioDefinition​(io.cucumber.messages.Messages.GherkinDocument.Feature feature, io.cucumber.messages.Messages.GherkinDocument.Feature.Scenario scenarioDefinition)
    • withNoMatchingScenario

      public static NamedScenario withNoMatchingScenario()
    • asGivenWhenThen

      public abstract java.util.Optional<java.lang.String> asGivenWhenThen​(ScenarioDisplayOption displayOption)
      Return the Given..When..Then part of the scenario
    • asGivenWhenThen

      public abstract java.util.Optional<java.lang.String> asGivenWhenThen()
    • asExampleTable

      public abstract java.util.Optional<java.lang.String> asExampleTable()
      Return the example table part of the scenario outline
    • asExampleTable

      public abstract java.util.Optional<java.lang.String> asExampleTable​(ScenarioDisplayOption displayOption)
      Return the example table part of the scenario outline