mirror of
https://github.com/jetty/jetty.project.git
synced 2025-02-28 10:59:19 +00:00
Using parent classloader as expected value
This commit is contained in:
parent
67f155bcf9
commit
aec63955eb
@ -246,7 +246,8 @@ public class WebAppClassLoaderTest
|
||||
// Expected Locations
|
||||
URL webappWebInfLibAcme = new URI("jar:" + testWebappDir.resolve("WEB-INF/lib/acme.jar").toUri().toASCIIString() + "!/org/acme/resource.txt").toURL();
|
||||
URL webappWebInfClasses = testWebappDir.resolve("WEB-INF/classes/org/acme/resource.txt").toUri().toURL();
|
||||
URL targetTestClasses = MavenTestingUtils.getTargetDir().toPath().resolve("test-classes/org/acme/resource.txt").toUri().toURL();
|
||||
// (from parent classloader)
|
||||
URL targetTestClasses = this.getClass().getClassLoader().getResource("org/acme/resource.txt");
|
||||
|
||||
_context.setParentLoaderPriority(false);
|
||||
dump(_context);
|
||||
|
Loading…
x
Reference in New Issue
Block a user