public class OpenShiftRecorderHandler extends Object implements org.junit.jupiter.api.extension.TestWatcher, org.junit.jupiter.api.extension.TestExecutionExceptionHandler, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
OpenShiftRecorder annotation. Names are turned into regexes
by adding .* as a suffix. If no name is provided, resources in namespaces (BM and master) are filtered automatically
by recording what resources are seen before test and so on.
Recorded resources:
OpenShift state is recorded when a test throws an exception. If JUnitConfig.recordAlways() is true, state is
recorded also when a test passes.
Use JUnitConfig.recordDir() ()} to set the directory of records.
| Constructor and Description |
|---|
OpenShiftRecorderHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
handleBeforeAllMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context,
Throwable throwable) |
void |
handleBeforeEachMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context,
Throwable throwable) |
void |
handleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext context,
Throwable throwable) |
void |
testSuccessful(org.junit.jupiter.api.extension.ExtensionContext context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallbackpublic void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context)
throws Exception
beforeEach in interface org.junit.jupiter.api.extension.BeforeEachCallbackExceptionpublic void handleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext context,
Throwable throwable)
throws Throwable
handleTestExecutionException in interface org.junit.jupiter.api.extension.TestExecutionExceptionHandlerThrowablepublic void handleBeforeAllMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context,
Throwable throwable)
throws Throwable
handleBeforeAllMethodExecutionException in interface org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandlerThrowablepublic void handleBeforeEachMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context,
Throwable throwable)
throws Throwable
handleBeforeEachMethodExecutionException in interface org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandlerThrowablepublic void testSuccessful(org.junit.jupiter.api.extension.ExtensionContext context)
testSuccessful in interface org.junit.jupiter.api.extension.TestWatcherCopyright © 2021. All rights reserved.