Class HttpResourceChainAwareResourceLoaderIT


  • @SpringBootTest({"juplo.http-resources.protocol-resolver.enabled=true","juplo.http-resources.resolver.enabled=false","juplo.http-resources.resolver.exclusion-patterns=**.txt"})
    public class HttpResourceChainAwareResourceLoaderIT
    extends IntegrationTestBase
    Author:
    Kai Moritz
    • Constructor Detail

      • HttpResourceChainAwareResourceLoaderIT

        public HttpResourceChainAwareResourceLoaderIT()
    • Method Detail

      • setUp

        @BeforeEach
        public void setUp()
      • testResourceHandling

        @Test
        public void testResourceHandling()
                                  throws Exception
        In contrast to HttpResourceResolverIT and HttpResourceProtocolResolverIT it does not make sense to test through the web-layer here, because the HttpResourceChainAwareResourceLoader is intended to mimic the look-upp through the source, that are configured for resource-chain for static http-resources for the look-up of local resources.
        Throws:
        Exception
      • testFetchExistent

        @Test
        public void testFetchExistent()
                               throws Exception
        Throws:
        Exception
      • testCachingOfExisting

        @Test
        public void testCachingOfExisting()
                                   throws Exception
        Throws:
        Exception
      • testCachingOfModified

        @Test
        public void testCachingOfModified()
                                   throws Exception
        Throws:
        Exception
      • testFetchNonExistent

        @Test
        public void testFetchNonExistent()
                                  throws Exception
        Throws:
        Exception
      • testCachingOfNonExistent

        @Test
        public void testCachingOfNonExistent()
                                      throws Exception
        Throws:
        Exception
      • testFetchServerResponse500

        @Test
        public void testFetchServerResponse500()
                                        throws Exception
        Throws:
        Exception