Class HttpResourceProtocolResolverIT


  • @SpringBootTest({"juplo.http-resources.protocol-resolver.enabled=true","juplo.http-resources.resolver.enabled=false","juplo.http-resources.resolver.exclusion-patterns=**.txt"})
    public class HttpResourceProtocolResolverIT
    extends IntegrationTestBase
    Mostly identically with HttpResourceResolverIT. Differences:Test explicit lookup with full address through context and has no exclusion/inclusion.
    • Constructor Detail

      • HttpResourceProtocolResolverIT

        public HttpResourceProtocolResolverIT()
    • Method Detail

      • setUp

        @BeforeEach
        public void setUp()
      • testResourceHandling

        @Test
        public void testResourceHandling()
                                  throws Exception
        Olthough the is not enabled in this test-scenario, this works nearly, identically to the same test there, because all lookups for resources in the resource-chain for static http-resources are executed through the application-context, where the HttpResourceProtocolResolver is registerd. Only exclusion is not working, since this is only implemented in the .
        Throws:
        Exception
      • testFetchExistent

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

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

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

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

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