Class ResourceRegistryTestBase


  • public abstract class ResourceRegistryTestBase
    extends java.lang.Object
    • Field Detail

      • REGISTRY_THREAD_LOCAL

        public static final java.lang.ThreadLocal<ResourceRegistry> REGISTRY_THREAD_LOCAL
    • Constructor Detail

      • ResourceRegistryTestBase

        public ResourceRegistryTestBase()
    • Method Detail

      • register

        public <R extends Shutdownable> R register​(R resource)
      • setResourceRegistryThreadLocal

        @BeforeMethod(alwaysRun=true)
        public void setResourceRegistryThreadLocal()
      • removeResourceRegistryThreadLocal

        @AfterMethod(alwaysRun=true)
        public void removeResourceRegistryThreadLocal()
      • shutdownResourceRegistry

        @AfterClass(alwaysRun=true)
        public void shutdownResourceRegistry()
                                      throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException