Making Sfl4jTestJarsRunner use its own classloader for loading the test
This commit is contained in:
parent
21c43b1ab9
commit
9c9f2bd7c3
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue