use of org.springframework.web.reactive.resource.EncodedResourceResolver.EncodedResource in project spring-framework by spring-projects.
the class CssLinkResourceTransformerTests method transformSkippedForGzippedResource.
@Test
public void transformSkippedForGzippedResource(GzippedFiles gzippedFiles) throws Exception {
gzippedFiles.create("main.css");
MockServerWebExchange exchange = MockServerWebExchange.from(get("/static/main.css"));
Resource resource = getResource("main.css");
EncodedResource gzipped = new EncodedResource(resource, "gzip", ".gz");
StepVerifier.create(this.transformerChain.transform(exchange, gzipped)).expectNext(gzipped).expectComplete().verify();
}
Aggregations