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:
@@ -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);
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user