use of org.springframework.core.io.FileUrlResource in project spring-framework by spring-projects.
the class PathResourceResolverTests method resolveWithEncodedPath.
// gh-22272
@Test
public void resolveWithEncodedPath() throws IOException {
Resource classpathLocation = new ClassPathResource("test/", PathResourceResolver.class);
testWithEncodedPath(classpathLocation);
testWithEncodedPath(new FileUrlResource(classpathLocation.getURL()));
}
Aggregations