Class AssertionExtension
java.lang.Object
ee.jakarta.tck.concurrent.framework.junit.extensions.AssertionExtension
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterTestExecutionCallback
,org.junit.jupiter.api.extension.BeforeTestExecutionCallback
,org.junit.jupiter.api.extension.Extension
,org.junit.jupiter.api.extension.TestWatcher
public class AssertionExtension
extends Object
implements org.junit.jupiter.api.extension.TestWatcher, org.junit.jupiter.api.extension.BeforeTestExecutionCallback, org.junit.jupiter.api.extension.AfterTestExecutionCallback
Logs before and after test execution, and injects the name of the test into
the @TestName field.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterTestExecution
(org.junit.jupiter.api.extension.ExtensionContext context) void
beforeTestExecution
(org.junit.jupiter.api.extension.ExtensionContext context) void
testAborted
(org.junit.jupiter.api.extension.ExtensionContext context, Throwable cause) void
testDisabled
(org.junit.jupiter.api.extension.ExtensionContext context, Optional<String> reason) void
testFailed
(org.junit.jupiter.api.extension.ExtensionContext context, Throwable cause) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.junit.jupiter.api.extension.TestWatcher
testSuccessful
-
Constructor Details
-
AssertionExtension
public AssertionExtension()
-
-
Method Details
-
testFailed
- Specified by:
testFailed
in interfaceorg.junit.jupiter.api.extension.TestWatcher
-
testAborted
- Specified by:
testAborted
in interfaceorg.junit.jupiter.api.extension.TestWatcher
-
testDisabled
public void testDisabled(org.junit.jupiter.api.extension.ExtensionContext context, Optional<String> reason) - Specified by:
testDisabled
in interfaceorg.junit.jupiter.api.extension.TestWatcher
-
beforeTestExecution
public void beforeTestExecution(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception - Specified by:
beforeTestExecution
in interfaceorg.junit.jupiter.api.extension.BeforeTestExecutionCallback
- Throws:
Exception
-
afterTestExecution
public void afterTestExecution(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception - Specified by:
afterTestExecution
in interfaceorg.junit.jupiter.api.extension.AfterTestExecutionCallback
- Throws:
Exception
-