Class HybrisContextHolderTest


  • @UnitTest
    @ContextConfiguration("classpath:test/dummy-test-spring.xml")
    public class HybrisContextHolderTest
    extends java.lang.Object
    • Field Detail

      • ctxGlobalMock

        public org.springframework.context.support.GenericApplicationContext ctxGlobalMock
      • ctxAppMock

        public org.springframework.context.support.GenericApplicationContext ctxAppMock
    • Constructor Detail

      • HybrisContextHolderTest

        public HybrisContextHolderTest()
    • Method Detail

      • inject

        public void inject()
      • cleanUp

        public void cleanUp()
      • testAssureCloseCalledWhileContextsDestroyed

        public void testAssureCloseCalledWhileContextsDestroyed()
                                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAssureGlobalContextInvalidatedWhenAfterDestroyed

        public void testAssureGlobalContextInvalidatedWhenAfterDestroyed()
                                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAssureAppContextForTheSameTenantsThrowsException

        public void testAssureAppContextForTheSameTenantsThrowsException()
                                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAssureApplicationContextDestroyedWhenErrorOccursWhenCreatingGlobalContext

        public void testAssureApplicationContextDestroyedWhenErrorOccursWhenCreatingGlobalContext()
                                                                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAssureGlobalContextDestroyedWhenErrorOccursWhenCreatingGlobalContext

        public void testAssureGlobalContextDestroyedWhenErrorOccursWhenCreatingGlobalContext()
                                                                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAssureGlobalContextDestroyedWhenErrorOccursWhenCreatingApplicationContext

        public void testAssureGlobalContextDestroyedWhenErrorOccursWhenCreatingApplicationContext()
                                                                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testCheckSpecificExtensionsForTenant

        public void testCheckSpecificExtensionsForTenant()
                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAssureFailFastWhenGlobalContextRefreshFails

        public void testAssureFailFastWhenGlobalContextRefreshFails()
                                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAssureFailFastWhenApplicationContextRefreshFails

        public void testAssureFailFastWhenApplicationContextRefreshFails()
                                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception