Annotation Type AfterStage


  • @Documented
    @Retention(RUNTIME)
    @Target(METHOD)
    public @interface AfterStage
    Marks methods to be executed after a stage has been executed. This essentially means that the method is executed either on next call of a step method of the next stage, or, for the last stage, after the scenario (but before any AfterScenario method).

    @AfterStage can be used to finish builders, for example.

    It is guaranteed that @AfterStage methods are only invoked once.