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

@@ -36,7 +36,7 @@ public class ApiClasspathStandardTestCase {
*/
public static Test suite() throws Exception {
PathableClassLoader parent = new PathableClassLoader(null);
parent.useSystemLoader("junit.");
parent.useExplicitLoader("junit.", Test.class.getClassLoader());
parent.addLogicalLib("commons-logging-api");
PathableClassLoader child = new PathableClassLoader(parent);

View File

@@ -34,7 +34,7 @@ public class AppClasspathStandardTestCase {
*/
public static Test suite() throws Exception {
PathableClassLoader loader = new PathableClassLoader(null);
loader.useSystemLoader("junit.");
loader.useExplicitLoader("junit.", Test.class.getClassLoader());
loader.addLogicalLib("testclasses");
loader.addLogicalLib("log4j12");
loader.addLogicalLib("commons-logging");

View File

@@ -35,7 +35,7 @@ public class ChildClasspathStandardTestCase {
*/
public static Test suite() throws Exception {
PathableClassLoader parent = new PathableClassLoader(null);
parent.useSystemLoader("junit.");
parent.useExplicitLoader("junit.", Test.class.getClassLoader());
PathableClassLoader child = new PathableClassLoader(parent);
child.addLogicalLib("testclasses");

View File

@@ -34,7 +34,7 @@ public class ParentClasspathStandardTestCase {
*/
public static Test suite() throws Exception {
PathableClassLoader parent = new PathableClassLoader(null);
parent.useSystemLoader("junit.");
parent.useExplicitLoader("junit.", Test.class.getClassLoader());
parent.addLogicalLib("commons-logging");
parent.addLogicalLib("log4j12");