Registering Extensions
Understand how to register extensions in JUnit 5.
We'll cover the following...
We'll cover the following...
Overview
We’ve seen JUnit 5 extensions in previous chapters, including parameter resolvers and parameterized test argument sources. These are the built-in extensions of JUnit 5. In this chapter, we’ll discuss how to create our own extensions. JUnit 5 provides the org.junit.jupiter.api.extension.Extension
interface for all extensions.
An Extension
is just a marker interface. Custom extensions typically implement ...