parent
ec5019dbae
commit
106cce58cc
|
@ -128,11 +128,8 @@ public class PathResourceResolverTests {
|
||||||
@Test
|
@Test
|
||||||
public void resolvePathRootResource() throws Exception {
|
public void resolvePathRootResource() throws Exception {
|
||||||
Resource webjarsLocation = new ClassPathResource("/META-INF/resources/webjars/", PathResourceResolver.class);
|
Resource webjarsLocation = new ClassPathResource("/META-INF/resources/webjars/", PathResourceResolver.class);
|
||||||
Resource actual = this.resolver.resolveResource(null, "", Arrays.asList(webjarsLocation), null);
|
|
||||||
String path = this.resolver.resolveUrlPathInternal("", Arrays.asList(webjarsLocation), null);
|
String path = this.resolver.resolveUrlPathInternal("", Arrays.asList(webjarsLocation), null);
|
||||||
|
|
||||||
assertNotNull(actual);
|
|
||||||
assertTrue(actual.exists() && actual.isReadable());
|
|
||||||
assertNull(path);
|
assertNull(path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue