1
|
|
/* Generated by AspectJ version 1.0.5 */
|
2
|
|
package org.apache.cactus.server.runner;
|
3
|
|
import junit.runner.TestSuiteLoader;
|
4
|
|
import org.apache.cactus.util.ClassLoaderUtils;
|
5
|
|
|
6
|
|
/**
|
7
|
|
* Dynamic class loader to load classes from the webapp classpath.
|
8
|
|
*
|
9
|
|
* @author <a href="mailto:vmassol@apache.org">Vincent Massol</a>
|
10
|
|
*
|
11
|
|
* @version $Id: WebappTestSuiteLoader.java,v 1.1 2002/05/12 20:38:11 vmassol Exp $
|
12
|
|
*/
|
13
|
|
public class WebappTestSuiteLoader implements TestSuiteLoader {
|
14
|
|
/**
|
15
|
|
* Try to load the test suite class using both the context class loader
|
16
|
|
* or the class loader that loaded this class.
|
17
|
|
*
|
18
|
|
* @param theSuiteClassName the test suite class to load
|
19
|
|
* @return the test suite class object
|
20
|
|
* @throws ClassNotFoundException if failed to load the class
|
21
|
|
*/
|
22
|
0
|
public Class load(String theSuiteClassName) throws ClassNotFoundException {
|
23
|
0
|
return ClassLoaderUtils.loadClass(theSuiteClassName, this.getClass());
|
24
|
|
}
|
25
|
|
|
26
|
|
/**
|
27
|
|
* Not implemented. Used to reload a class.
|
28
|
|
*
|
29
|
|
* @param theClass the class to reload
|
30
|
|
* @return the reloaded class
|
31
|
|
* @throws ClassNotFoundException if an error occurs during reloading
|
32
|
|
*/
|
33
|
0
|
public Class reload(Class theClass) throws ClassNotFoundException {
|
34
|
0
|
throw new ClassNotFoundException("Feature not implemented");
|
35
|
|
}
|
36
|
|
|
37
|
|
/**
|
38
|
|
* Dynamic class loader to load classes from the webapp classpath.
|
39
|
|
*
|
40
|
|
* @author <a href="mailto:vmassol@apache.org">Vincent Massol</a>
|
41
|
|
*
|
42
|
|
* @version $Id: WebappTestSuiteLoader.java,v 1.1 2002/05/12 20:38:11 vmassol Exp $
|
43
|
|
*/
|
44
|
0
|
public WebappTestSuiteLoader() {
|
45
|
0
|
super();
|
46
|
|
}
|
47
|
|
}
|