Top Description Fields Constructors Methods
org.junit.jupiter.migrationsupport.rules

public Class VerifierSupport

extends Object
implements AfterEachCallback
Class Inheritance
All Implemented Interfaces
org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.Extension
Annotations
@SuppressWarnings:removal
@API
status:DEPRECATED
since:6.0
@Deprecated
since:6.0
forRemoval:true
Static Imports
org.apiguardian.api.API.Status.DEPRECATED

Deprecated

for removal since 6.0.

Please implement org.junit.jupiter.api.extension.AfterTestExecutionCallback instead.

This Extension provides native support for subclasses of the Verifier 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 please use the new extension model of JUnit Jupiter instead of the rule-based model of JUnit 4.

Since
5.0
See Also
org.junit.rules.Verifier, org.junit.rules.TestRule, org.junit.Rule

Field Summary

Modifier and TypeField and Description
private final TestRuleSupport

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
afterEach(ExtensionContext context)

Implements org.junit.jupiter.api.extension.AfterEachCallback.afterEach.

Callback that is invoked after an individual test and any user-defined teardown methods for that test have been executed.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

supportback to summary
private final TestRuleSupport support

Constructor Detail

VerifierSupportback to summary
public VerifierSupport()

Method Detail

afterEachback to summary
public void afterEach(ExtensionContext context) throws Exception

Implements org.junit.jupiter.api.extension.AfterEachCallback.afterEach.

Doc from org.junit.jupiter.api.extension.AfterEachCallback.afterEach.

Callback that is invoked after an individual test and any user-defined teardown methods for that test have been executed.

Annotations
@Override