Package io.strimzi.systemtest.logs
Class TestExecutionWatcher
- java.lang.Object
-
- io.strimzi.systemtest.logs.TestExecutionWatcher
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.Extension,org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler,org.junit.jupiter.api.extension.TestExecutionExceptionHandler
public class TestExecutionWatcher extends Object implements org.junit.jupiter.api.extension.TestExecutionExceptionHandler, org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
-
-
Constructor Summary
Constructors Constructor Description TestExecutionWatcher()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcollectLogs(String testClass, String testMethod)voidhandleAfterAllMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext extensionContext, Throwable throwable)voidhandleAfterEachMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext extensionContext, Throwable throwable)voidhandleBeforeAllMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext extensionContext, Throwable throwable)voidhandleBeforeEachMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext extensionContext, Throwable throwable)voidhandleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext extensionContext, Throwable throwable)
-
-
-
Method Detail
-
handleTestExecutionException
public void handleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext extensionContext, Throwable throwable) throws Throwable- Specified by:
handleTestExecutionExceptionin interfaceorg.junit.jupiter.api.extension.TestExecutionExceptionHandler- Throws:
Throwable
-
handleBeforeAllMethodExecutionException
public void handleBeforeAllMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext extensionContext, Throwable throwable) throws Throwable- Specified by:
handleBeforeAllMethodExecutionExceptionin interfaceorg.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler- Throws:
Throwable
-
handleBeforeEachMethodExecutionException
public void handleBeforeEachMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext extensionContext, Throwable throwable) throws Throwable- Specified by:
handleBeforeEachMethodExecutionExceptionin interfaceorg.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler- Throws:
Throwable
-
handleAfterEachMethodExecutionException
public void handleAfterEachMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext extensionContext, Throwable throwable) throws Throwable- Specified by:
handleAfterEachMethodExecutionExceptionin interfaceorg.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler- Throws:
Throwable
-
handleAfterAllMethodExecutionException
public void handleAfterAllMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext extensionContext, Throwable throwable) throws Throwable- Specified by:
handleAfterAllMethodExecutionExceptionin interfaceorg.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler- Throws:
Throwable
-
-