Package io.quarkus.test.common
Class TestResourceManager
- java.lang.Object
-
- io.quarkus.test.common.TestResourceManager
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class TestResourceManager extends Object implements Closeable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classTestResourceManager.DefaultTestInjectorstatic classTestResourceManager.TestResourceClassEntry
-
Field Summary
Fields Modifier and Type Field Description static StringCLOSEABLE_NAME
-
Constructor Summary
Constructors Constructor Description TestResourceManager(Class<?> testClass)TestResourceManager(Class<?> testClass, Class<?> profileClass, List<TestResourceManager.TestResourceClassEntry> additionalTestResources, boolean disableGlobalTestResources)TestResourceManager(Class<?> testClass, Class<?> profileClass, List<TestResourceManager.TestResourceClassEntry> additionalTestResources, boolean disableGlobalTestResources, Map<String,String> devServicesProperties, Optional<String> containerNetworkId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Map<String,String>getConfigProperties()booleanhasPerTestResources()voidinit(String testProfileName)voidinject(Object testInstance)voidsetTestErrorCause(Throwable testErrorCause)Map<String,String>start()
-
-
-
Field Detail
-
CLOSEABLE_NAME
public static final String CLOSEABLE_NAME
-
-
Constructor Detail
-
TestResourceManager
public TestResourceManager(Class<?> testClass)
-
TestResourceManager
public TestResourceManager(Class<?> testClass, Class<?> profileClass, List<TestResourceManager.TestResourceClassEntry> additionalTestResources, boolean disableGlobalTestResources)
-
-
Method Detail
-
setTestErrorCause
public void setTestErrorCause(Throwable testErrorCause)
-
init
public void init(String testProfileName)
-
inject
public void inject(Object testInstance)
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
hasPerTestResources
public boolean hasPerTestResources()
-
-