Using parent classloader as expected value

This commit is contained in:
Joakim Erdfelt 2015-07-28 06:47:32 -07:00
parent 67f155bcf9
commit aec63955eb
1 changed files with 2 additions and 1 deletions

View File

@ -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);