Class VerifierSupport
- java.lang.Object
-
- org.junit.jupiter.migrationsupport.rules.VerifierSupport
-
- All Implemented Interfaces:
AfterEachCallback
,Extension
@API(status=EXPERIMENTAL, since="5.0") public class VerifierSupport extends Object implements AfterEachCallback
ThisExtension
provides native support for subclasses of theVerifier
rule from JUnit 4.@Rule
-annotated fields as well as methods are supported.By using this class-level extension on a test class such
Verifier
implementations in legacy code bases can be left unchanged including the JUnit 4 rule import statements.However, if you intend to develop a new extension for JUnit 5 please use the new extension model of JUnit Jupiter instead of the rule-based model of JUnit 4.
-
-
Constructor Summary
Constructors Constructor Description VerifierSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterEach(ExtensionContext context)
Callback that is invoked after each test has been invoked.
-
-
-
Method Detail
-
afterEach
public void afterEach(ExtensionContext context) throws Exception
Description copied from interface:AfterEachCallback
Callback that is invoked after each test has been invoked.- Specified by:
afterEach
in interfaceAfterEachCallback
- Parameters:
context
- the current extension context; nevernull
- Throws:
Exception
-
-