Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

...