public class TestCaseClassLoader
extends java.lang.ClassLoader
The list of excluded package paths is specified in a properties file "excluded.properties" that is located in the same place as the TestCaseClassLoader class.
Known limitation: the TestCaseClassLoader cannot load classes from jar files.
Constructor and Description |
---|
TestCaseClassLoader()
Constructs a TestCaseLoader.
|
TestCaseClassLoader(java.lang.String classPath)
Constructs a TestCaseLoader.
|
Modifier and Type | Method and Description |
---|---|
java.net.URL |
getResource(java.lang.String name) |
java.io.InputStream |
getResourceAsStream(java.lang.String name) |
boolean |
isExcluded(java.lang.String name) |
java.lang.Class |
loadClass(java.lang.String name,
boolean resolve) |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public TestCaseClassLoader()
public TestCaseClassLoader(java.lang.String classPath)
public java.net.URL getResource(java.lang.String name)
getResource
in class java.lang.ClassLoader
public java.io.InputStream getResourceAsStream(java.lang.String name)
getResourceAsStream
in class java.lang.ClassLoader
public boolean isExcluded(java.lang.String name)
public java.lang.Class loadClass(java.lang.String name, boolean resolve) throws java.lang.ClassNotFoundException
loadClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException