Annotation Type ExpectedScenarioState


  • @Documented
    @Retention(RUNTIME)
    @Target(FIELD)
    public @interface ExpectedScenarioState
    Marks fields to be expected by a scenario stage. The annotation behaves exactly like ScenarioState, but better indicates the usage of a field.
    • 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