Package de.juplo.httpresources
Class HttpResourceChainAwareResourceLoaderIT
- java.lang.Object
-
- de.juplo.httpresources.IntegrationTestBase
-
- de.juplo.httpresources.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.juplo.httpresources.IntegrationTestBase
IntegrationTestBase.Callback, IntegrationTestBase.ClockStub, IntegrationTestBase.IntegrationTestConfiguration
-
-
Field Summary
-
Fields inherited from class de.juplo.httpresources.IntegrationTestBase
CLOCK, formatter, NGINX, server
-
-
Constructor Summary
Constructors Constructor Description HttpResourceChainAwareResourceLoaderIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
void
testCaching()
void
testCachingOfExisting()
void
testCachingOfModified()
void
testCachingOfNonExistent()
void
testFetchExistent()
void
testFetchNonExistent()
void
testFetchServerResponse500()
void
testResourceHandling()
In contrast toHttpResourceResolverIT
andHttpResourceProtocolResolverIT
it does not make sense to test through the web-layer here, because theHttpResourceChainAwareResourceLoader
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.-
Methods inherited from class de.juplo.httpresources.IntegrationTestBase
address, clearMockServer, FETCH, getMockServerPort, getMockServerUri, INTERNAL_SERVER_ERROR, NGINIX_IP, NGINX, NGINX, NGINX_PORT, NGINX_URI, NOT_FOUND, prepareMockServer, RESPONSE
-
-
-
-
Method Detail
-
setUp
@BeforeEach public void setUp()
-
testResourceHandling
@Test public void testResourceHandling() throws Exception
In contrast toHttpResourceResolverIT
andHttpResourceProtocolResolverIT
it does not make sense to test through the web-layer here, because theHttpResourceChainAwareResourceLoader
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
-
testCachingOfNonExistent
@Test public void testCachingOfNonExistent() throws Exception
- Throws:
Exception
-
testFetchServerResponse500
@Test public void testFetchServerResponse500() throws Exception
- Throws:
Exception
-
-