Package org.concordion.api
Annotation Interface BeforeExample
Marks a method to be invoked before 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:
@BeforeExample public void logBeforeExample(@ExampleName String exampleName) { log("Starting " + exampleName); }
- Since:
- 2.0.0
- See Also: