THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Now five main types of extension points can be used: test instance post-processing, conditional test execution, life-cycle callback, parameter resolution, exception handling.
Code Block |
---|
@ExtendWith(BenchmarkExtension.class)
public @interface Benchmark { ... }
public class BenchmarkExtension implements
BeforeAllCallback, BeforeTestExecutionCallback,
AfterTestExecutionCallback, AfterAllCallback { /* extension logic */}
|
An extension will be executed only if a class marked the corresponding annotation. For detailed information, please take a look at the tutorial.
...