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 with BeforeScenario and AfterScenario
     @ScenarioRule
     MyRule rule = new MyRule();