Package com.tngtech.jgiven.annotation
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 anyAfterScenario
method).If marked as repeatable, the
@AfterStage
method will execute every time a stage is reused; if not marked as repeatable,it is guaranteed that the@AfterStage
method is invoked only once.@AfterStage
can be used to finish builders, for example.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
repeatable
marks an after stage method for repeated execution.
-