Package io.quarkus.test.junit
Class TestResourceUtil
java.lang.Object
io.quarkus.test.junit.TestResourceUtil
Contains methods that are needed for determining how to deal with
QuarkusTestResource and
WithTestResource-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains a bunch of utilities that are needed for handlingTestResourceManagervia reflection (due to different classloaders) -
Method Summary
Modifier and TypeMethodDescription(package private) static Set<TestResourceManager.TestResourceComparisonInfo> static StringgetReloadGroupIdentifier(Class<?> requiredTestClass, Class<? extends QuarkusTestProfile> profileClass) (package private) static Set<TestResourceManager.TestResourceComparisonInfo> nextTestResources(Class<?> requiredTestClass, QuarkusTestProfile profileInstance) static booleantestResourcesRequireReload(QuarkusTestExtensionState state, Class<?> nextTestClass, Class<? extends QuarkusTestProfile> nextTestClassProfile) This is where we decide if the test resources of the current state vs the ones required by the next test class to be executed require a Quarkus restart.
-
Method Details
-
testResourcesRequireReload
public static boolean testResourcesRequireReload(QuarkusTestExtensionState state, Class<?> nextTestClass, Class<? extends QuarkusTestProfile> nextTestClassProfile) This is where we decide if the test resources of the current state vs the ones required by the next test class to be executed require a Quarkus restart. -
existingTestResources
static Set<TestResourceManager.TestResourceComparisonInfo> existingTestResources(QuarkusTestExtensionState state) -
nextTestResources
static Set<TestResourceManager.TestResourceComparisonInfo> nextTestResources(Class<?> requiredTestClass, QuarkusTestProfile profileInstance) -
getReloadGroupIdentifier
public static String getReloadGroupIdentifier(Class<?> requiredTestClass, Class<? extends QuarkusTestProfile> profileClass)
-