Package io.quarkus.test.junit
Class QuarkusTestExtensionState
- java.lang.Object
-
- io.quarkus.test.junit.QuarkusTestExtensionState
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource
- Direct Known Subclasses:
IntegrationTestExtensionState,QuarkusTestExtension.ExtensionState
public class QuarkusTestExtensionState extends Object implements org.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource
-
-
Field Summary
Fields Modifier and Type Field Description protected Closeableresourceprotected CloseabletestResourceManager
-
Constructor Summary
Constructors Constructor Description QuarkusTestExtensionState(Closeable testResourceManager, Closeable resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected voiddoClose()ThrowablegetTestErrorCause()protected voidsetTestFailed(Throwable failure)
-
-
-
Method Detail
-
getTestErrorCause
public Throwable getTestErrorCause()
-
close
public void close() throws IOException- Specified by:
closein interfaceorg.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource- Throws:
IOException
-
setTestFailed
protected void setTestFailed(Throwable failure)
-
doClose
protected void doClose() throws IOException- Throws:
IOException
-
-