Class Templates

This version is still in development and not considered stable yet.
For the latest stable release, please see JUnit 6.0.1!

A @ClassTemplate is not a regular test class but rather a template for the contained test cases. As such, it is designed to be invoked multiple times depending on invocation contexts returned by the registered providers. Thus, it must be used in conjunction with a registered ClassTemplateInvocationContextProvider extension. Each invocation of a class template behaves like the execution of a regular test class with full support for the same lifecycle callbacks and extensions. Please refer to Providing Invocation Contexts for Class Templates for usage examples.

Parameterized Classes are a built-in specialization of class templates.