Annotation Type ScenarioState


  • @Documented
    @Retention(RUNTIME)
    @Target(FIELD)
    public @interface ScenarioState
    Marks fields to be read and/or written by a scenario stage.
    • Element Detail

      • required

        boolean required
        Marks this state as required for the stage. If in this case the state isn't provided, a JGivenMissingRequiredScenarioStateException will be thrown.
        Since:
        0.14.0
        Default:
        false
      • guaranteed

        boolean guaranteed
        Default:
        false