1
0

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:
Simon Kitching
2006-07-25 01:30:16 +00:00
parent cd2518594b
commit 557f97f1a5
20 changed files with 28 additions and 26 deletions

View File

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

View File

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