...

/

Extension Context

Extension Context

Understand how to build ExtensionContext in JUnit 5.

The ExtensionContext interface

When building extensions, the most important concept to understand is the ExtensionContext interface. It contains context information about the currently running test class or method. Instances of ExtensionContext pass to extensions as parameters that allow them to access necessary context information. They’re organized in a hierarchical way. An ...