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.TestWatcher
- Direct Known Subclasses:
AbstractJvmQuarkusTestExtension
,NativeTestExtension
,QuarkusIntegrationTestExtension
,QuarkusMainIntegrationTestExtension
public abstract class AbstractQuarkusTestWithContextExtension extends AbstractTestWithCallbacksExtension implements org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler, org.junit.jupiter.api.extension.TestWatcher
-
-
Field Summary
Fields Modifier and Type Field Description static String
IO_QUARKUS_TESTING_TYPE
-
Constructor Summary
Constructors Constructor Description AbstractQuarkusTestWithContextExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected QuarkusTestExtensionState
getState(org.junit.jupiter.api.extension.ExtensionContext context)
protected org.junit.jupiter.api.extension.ExtensionContext.Store
getStoreFromContext(org.junit.jupiter.api.extension.ExtensionContext context)
void
handleAfterAllMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable)
void
handleAfterEachMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable)
void
handleBeforeAllMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable)
void
handleBeforeEachMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable)
protected void
markTestAsFailed(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable)
protected void
setState(org.junit.jupiter.api.extension.ExtensionContext context, QuarkusTestExtensionState state)
void
testFailed(org.junit.jupiter.api.extension.ExtensionContext context, Throwable cause)
-
Methods inherited from class io.quarkus.test.junit.AbstractTestWithCallbacksExtension
invokeAfterAllCallbacks, invokeAfterAllCallbacks, invokeAfterConstructCallbacks, invokeAfterConstructCallbacks, invokeAfterEachCallbacks, invokeAfterEachCallbacks, invokeAfterTestExecutionCallbacks, invokeAfterTestExecutionCallbacks, invokeBeforeClassCallbacks, invokeBeforeClassCallbacks, invokeBeforeEachCallbacks, invokeBeforeEachCallbacks, invokeBeforeTestExecutionCallbacks, invokeBeforeTestExecutionCallbacks, isAfterAllCallbacksEmpty, isAfterEachCallbacksEmpty, isAfterTestCallbacksEmpty, isBeforeEachCallbacksEmpty, isBeforeTestCallbacksEmpty, populateCallbacks
-
-
-
-
Field Detail
-
IO_QUARKUS_TESTING_TYPE
public static final String IO_QUARKUS_TESTING_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
handleAfterAllMethodExecutionException
public void handleAfterAllMethodExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable) throws Throwable
- Specified by:
handleAfterAllMethodExecutionException
in 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:
handleAfterEachMethodExecutionException
in 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:
handleBeforeAllMethodExecutionException
in 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:
handleBeforeEachMethodExecutionException
in interfaceorg.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
- Throws:
Throwable
-
testFailed
public void testFailed(org.junit.jupiter.api.extension.ExtensionContext context, Throwable cause)
- Specified by:
testFailed
in 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)
-
-