Different Ways to Register Extensions
Understand different ways to register extensions in JUnit Jupiter.
We'll cover the following...
We'll cover the following...
Extensions can be registered in the following three ways.
- Declarative Registration: With the
@ExtendWithannotation. - Programmatic Registration: With the
@RegisterExtensionannotation. - Automatic Registration: With the service loader mechanism.
Declarative registration
For declarative registration, we use the @ExtendWith ...