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
@ExtendWith
annotation. - Programmatic Registration: With the
@RegisterExtension
annotation. - Automatic Registration: With the service loader mechanism.
Declarative registration
For declarative registration, we use the @ExtendWith
...