Make unit tests compatible with maven2 Surefire plugin.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@425249 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -55,7 +55,7 @@ public class FirstPriorityConfigTestCase extends TestCase {
|
||||
// class through a dummy loader though this is not absolutely
|
||||
// necessary...
|
||||
PathableClassLoader dummy = new PathableClassLoader(null);
|
||||
dummy.useSystemLoader("junit.");
|
||||
dummy.useExplicitLoader("junit.", Test.class.getClassLoader());
|
||||
dummy.addLogicalLib("testclasses");
|
||||
dummy.addLogicalLib("commons-logging");
|
||||
|
||||
@@ -70,7 +70,7 @@ public class FirstPriorityConfigTestCase extends TestCase {
|
||||
// so we can check that the first one in the classpath is
|
||||
// used.
|
||||
PathableClassLoader containerLoader = new PathableClassLoader(null);
|
||||
containerLoader.useSystemLoader("junit.");
|
||||
containerLoader.useExplicitLoader("junit.", Test.class.getClassLoader());
|
||||
containerLoader.addLogicalLib("commons-logging");
|
||||
|
||||
PathableClassLoader webappLoader = new PathableClassLoader(containerLoader);
|
||||
|
||||
@@ -62,7 +62,7 @@ public class PriorityConfigTestCase extends TestCase {
|
||||
// class through a dummy loader though this is not absolutely
|
||||
// necessary...
|
||||
PathableClassLoader dummy = new PathableClassLoader(null);
|
||||
dummy.useSystemLoader("junit.");
|
||||
dummy.useExplicitLoader("junit.", Test.class.getClassLoader());
|
||||
dummy.addLogicalLib("testclasses");
|
||||
dummy.addLogicalLib("commons-logging");
|
||||
|
||||
@@ -77,7 +77,7 @@ public class PriorityConfigTestCase extends TestCase {
|
||||
// so we can check that the first one in the classpath is
|
||||
// used.
|
||||
PathableClassLoader containerLoader = new PathableClassLoader(null);
|
||||
containerLoader.useSystemLoader("junit.");
|
||||
containerLoader.useExplicitLoader("junit.", Test.class.getClassLoader());
|
||||
containerLoader.addLogicalLib("commons-logging");
|
||||
|
||||
URL pri10URL = new URL(baseUrl, "priority10/");
|
||||
|
||||
Reference in New Issue
Block a user