Package io.quarkus.test.junit
Class AbstractQuarkusTestWithContextExtension
java.lang.Object
io.quarkus.test.junit.AbstractTestWithCallbacksExtension
io.quarkus.test.junit.AbstractQuarkusTestWithContextExtension
- All Implemented Interfaces:
org.junit.jupiter.api.extension.Extension,org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler,org.junit.jupiter.api.extension.TestExecutionExceptionHandler,org.junit.jupiter.api.extension.TestWatcher
- Direct Known Subclasses:
AbstractJvmQuarkusTestExtension,QuarkusIntegrationTestExtension,QuarkusMainIntegrationTestExtension
public abstract class AbstractQuarkusTestWithContextExtension
extends AbstractTestWithCallbacksExtension
implements org.junit.jupiter.api.extension.TestExecutionExceptionHandler, org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler, org.junit.jupiter.api.extension.TestWatcher
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected QuarkusTestExtensionStategetState(org.junit.jupiter.api.extension.ExtensionContext context) protected org.junit.jupiter.api.extension.ExtensionContext.StoregetStoreFromContext(org.junit.jupiter.api.extension.ExtensionContext context) voidhandleAfterAllMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable) voidhandleAfterEachMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable) voidhandleBeforeAllMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable) voidhandleBeforeEachMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable) voidhandleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable) protected voidmarkTestAsFailed(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable) protected voidsetState(org.junit.jupiter.api.extension.ExtensionContext context, QuarkusTestExtensionState state) voidtestFailed(org.junit.jupiter.api.extension.ExtensionContext context, Throwable cause) Methods inherited from class io.quarkus.test.junit.AbstractTestWithCallbacksExtension
clearCallbacks, invokeAfterAllCallbacks, invokeAfterAllCallbacks, invokeAfterConstructCallbacks, invokeAfterConstructCallbacks, invokeAfterEachCallbacks, invokeAfterEachCallbacks, invokeAfterTestExecutionCallbacks, invokeAfterTestExecutionCallbacks, invokeBeforeClassCallbacks, invokeBeforeClassCallbacks, invokeBeforeEachCallbacks, invokeBeforeEachCallbacks, invokeBeforeTestExecutionCallbacks, invokeBeforeTestExecutionCallbacks, isAfterAllCallbacksEmpty, isAfterEachCallbacksEmpty, isAfterTestCallbacksEmpty, isBeforeEachCallbacksEmpty, isBeforeTestCallbacksEmpty, populateCallbacksMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.jupiter.api.extension.TestWatcher
testAborted, testDisabled, testSuccessful
-
Field Details
-
IO_QUARKUS_TESTING_TYPE
- See Also:
-
-
Constructor Details
-
AbstractQuarkusTestWithContextExtension
public AbstractQuarkusTestWithContextExtension()
-
-
Method Details
-
handleTestExecutionException
public void handleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable) throws Throwable - Specified by:
handleTestExecutionExceptionin interfaceorg.junit.jupiter.api.extension.TestExecutionExceptionHandler- Throws:
Throwable
-
handleAfterAllMethodExecutionException
public void handleAfterAllMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable) throws Throwable - Specified by:
handleAfterAllMethodExecutionExceptionin interfaceorg.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler- Throws:
Throwable
-
handleAfterEachMethodExecutionException
public void handleAfterEachMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable) throws Throwable - Specified by:
handleAfterEachMethodExecutionExceptionin interfaceorg.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler- Throws:
Throwable
-
handleBeforeAllMethodExecutionException
public void handleBeforeAllMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, 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 context, Throwable throwable) throws Throwable - Specified by:
handleBeforeEachMethodExecutionExceptionin interfaceorg.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler- Throws:
Throwable
-
testFailed
- Specified by:
testFailedin interfaceorg.junit.jupiter.api.extension.TestWatcher
-
getState
protected QuarkusTestExtensionState getState(org.junit.jupiter.api.extension.ExtensionContext context) -
setState
protected void setState(org.junit.jupiter.api.extension.ExtensionContext context, QuarkusTestExtensionState state) -
getStoreFromContext
protected org.junit.jupiter.api.extension.ExtensionContext.Store getStoreFromContext(org.junit.jupiter.api.extension.ExtensionContext context) -
markTestAsFailed
protected void markTestAsFailed(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable)
-