Package com.tngtech.jgiven.annotation
Annotation Type ScenarioRule
-
@Documented @Retention(RUNTIME) @Target(FIELD) public @interface ScenarioRule
Marks fields to be Scenario rules. Scenario rules are classes with begin() and after() methods. These methods are called like methods annotated withBeforeScenario
andAfterScenario
@ScenarioRule MyRule rule = new MyRule();