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 Closeable
resource
protected Closeable
testResourceManager
-
Constructor Summary
Constructors Constructor Description QuarkusTestExtensionState(Closeable testResourceManager, Closeable resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected void
doClose()
Throwable
getTestErrorCause()
protected void
setTestFailed(Throwable failure)
-
-
-
Method Detail
-
getTestErrorCause
public Throwable getTestErrorCause()
-
close
public void close() throws IOException
- Specified by:
close
in interfaceorg.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource
- Throws:
IOException
-
setTestFailed
protected void setTestFailed(Throwable failure)
-
doClose
protected void doClose() throws IOException
- Throws:
IOException
-
-