1 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 30 31 public class CustomConfigFullTestCase extends CustomConfigTestCase { 32 33 34 public CustomConfigFullTestCase(String name) { 35 super(name); 36 } 37 38 39 42 public static Test suite() throws Exception { 43 PathableClassLoader parent = new PathableClassLoader(null); 44 parent.useSystemLoader("junit."); 45 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 } 60 | Popular Tags |