Class TestResourceUtil.TestResourceManagerReflections

java.lang.Object
io.quarkus.test.junit.TestResourceUtil.TestResourceManagerReflections
Enclosing class:
TestResourceUtil

public static final class TestResourceUtil.TestResourceManagerReflections extends Object
Contains a bunch of utilities that are needed for handling TestResourceManager via reflection (due to different classloaders)
  • Method Details

    • copyEntriesFromProfile

      public static <T> List<T> copyEntriesFromProfile(QuarkusTestProfile profileInstance, ClassLoader classLoader)
      Since TestResourceManager is loaded from the ClassLoader passed in as an argument, we need to convert the user input QuarkusTestProfile.TestResourceEntry into instances of TestResourceManager.TestResourceClassEntry that are loaded from that ClassLoader
    • createReflectively

      public static Closeable createReflectively(Class<?> testResourceManagerClass, Class<?> testClass, Class<?> profileClass, List<io.quarkus.test.common.TestResourceManager.TestResourceClassEntry> additionalTestResources, boolean disableGlobalTestResources, Map<String,String> devServicesProperties, Optional<String> containerNetworkId, Path testClassLocation)
      Corresponds to TestResourceManager(Class, Class, List, boolean, Map, Optional, Path)
    • createReflectively

      public static Closeable createReflectively(Class<?> testResourceManagerClass, Class<?> testClass, Class<?> profileClass, List<io.quarkus.test.common.TestResourceManager.TestResourceClassEntry> additionalTestResources, boolean disableGlobalTestResources, Map<String,String> devServicesProperties, Optional<String> containerNetworkId)
      Corresponds to TestResourceManager(Class, Class, List, boolean, Map, Optional)
    • initReflectively

      public static void initReflectively(Object testResourceManager, Class<?> profileClassName)
      Corresponds to TestResourceManager.init(String)
    • startReflectively

      public static Map<String,String> startReflectively(Object testResourceManager)
      Corresponds to TestResourceManager.start()
    • testResourceComparisonInfo

      static Set<io.quarkus.test.common.TestResourceManager.TestResourceComparisonInfo> testResourceComparisonInfo(Object testResourceManager)
      Corresponds to TestResourceManager.testResourceComparisonInfo()