Annotation Type Scenario


@Target(METHOD)
@Retention(RUNTIME)
@Test
public @interface Scenario
Represents a use case in a Story. The annotation is meta-annotated with JUnit 5 Jupiter's built-in "@Test" annotation. When IDEs and test engines scan through a given set of test classes and find this custom @Scenario annotation on public instance methods, they mark those methods as test methods to be executed.
  • Required Element Summary

    Required Elements 
    Modifier and Type Required Element Description
    java.lang.String value
    Returns the description of the scenario as human readable information for living documentation.
  • Element Details

    • value

      java.lang.String value
      Returns the description of the scenario as human readable information for living documentation.
      Returns:
      representation of the use case in a plain human language.