com.tngtech.jgiven.annotation
Annotation Type ScenarioRule


@Documented
@Retention(value=RUNTIME)
@Target(value=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 with BeforeScenario and AfterScenario

 @ScenarioRule
 MyRule rule = new MyRule();