1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.commons.logging.jdk14;
18
19
20 import junit.framework.Test;
21
22 import org.apache.commons.logging.PathableTestSuite;
23 import org.apache.commons.logging.PathableClassLoader;
24
25
26 /***
27 * TestCase for Jdk14 logging when the commons-logging jar file is in
28 * the parent classpath.
29 */
30
31 public class CustomConfigFullTestCase extends CustomConfigTestCase {
32
33
34 public CustomConfigFullTestCase(String name) {
35 super(name);
36 }
37
38
39 /***
40 * Return the tests included in this test suite.
41 */
42 public static Test suite() throws Exception {
43 PathableClassLoader parent = new PathableClassLoader(null);
44 parent.useSystemLoader("junit.");
45
46
47
48
49
50 parent.useSystemLoader("org.apache.commons.logging.jdk14.TestHandler");
51 parent.addLogicalLib("commons-logging");
52
53 PathableClassLoader child = new PathableClassLoader(parent);
54 child.addLogicalLib("testclasses");
55
56 Class testClass = child.loadClass(CustomConfigFullTestCase.class.getName());
57 return new PathableTestSuite(testClass, child);
58 }
59 }