Annotation Interface AfterExample


@Target(METHOD) @Retention(RUNTIME) public @interface AfterExample
Marks a method to be invoked after each example is run. The examples must use the ExampleCommand for the method to be invoked.

The method can optionally take a String parameter annotated with @ExampleName, which will be passed the example name.

For example:

 @AfterExample
 public void logAfterExample(@ExampleName String exampleName) {
     log("Finished " + exampleName);
 }
 
Since:
2.0.0
See Also: