Package com.tngtech.jgiven.annotation
Annotation 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.-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Marks this state as required for the stage.
-
Element Details
-
resolution
ScenarioState.Resolution resolution- Default:
- AUTO
-
required
boolean requiredMarks this state as required for the stage. If in this case the state isn't provided, aJGivenMissingRequiredScenarioStateException
will be thrown.- Since:
- 0.14.0
- Default:
- false
-