Making Sfl4jTestJarsRunner use its own classloader for loading the test

This commit is contained in:
Joakim Erdfelt 2011-10-28 09:23:11 -07:00
parent 21c43b1ab9
commit 9c9f2bd7c3
1 changed files with 3 additions and 3 deletions

View File

@ -24,9 +24,9 @@ public class Slf4jTestJarsRunner extends BlockJUnit4ClassRunner
{
private static class Slf4jTestClassLoader extends URLClassLoader
{
public Slf4jTestClassLoader(URL[] urls)
public Slf4jTestClassLoader(URL[] urls, ClassLoader parent)
{
super(urls);
super(urls, parent);
}
@Override
@ -143,7 +143,7 @@ public class Slf4jTestJarsRunner extends BlockJUnit4ClassRunner
System.out.println("Classpath entry: " + url);
}
slf4jClassLoader = new Slf4jTestClassLoader(urls);
slf4jClassLoader = new Slf4jTestClassLoader(urls, original);
}
catch (MalformedURLException e)
{