Class TestResourceUtil

java.lang.Object
io.quarkus.test.junit.TestResourceUtil

public final class TestResourceUtil extends Object
Contains methods that are needed for determining how to deal with QuarkusTestResource and WithTestResource
  • 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<io.quarkus.test.common.TestResourceManager.TestResourceComparisonInfo> existingTestResources(QuarkusTestExtensionState state)
    • nextTestResources

      static Set<io.quarkus.test.common.TestResourceManager.TestResourceComparisonInfo> nextTestResources(Class<?> requiredTestClass, QuarkusTestProfile profileInstance)
    • getReloadGroupIdentifier

      public static String getReloadGroupIdentifier(Class<?> requiredTestClass, Class<? extends QuarkusTestProfile> profileClass)