1 package junit.tests.runner;
2
3 /**
4 * Test class used in TestTestCaseClassLoader
5 */
6 import junit.framework.*;
7
|
8 > public class LoadedFromJar extends Assert {
|
9 public void verify() {
10 verifyApplicationClassLoadedByTestLoader();
|
11 }
12 private boolean isTestCaseClassLoader(ClassLoader cl) {
|
13 return (cl != null && cl.getClass().getName().equals(junit.runner.TestCaseClassLoader.class.getName()));
|
14 }
|
15 private void verifyApplicationClassLoadedByTestLoader() {
16 assertTrue(isTestCaseClassLoader(getClass().getClassLoader()));
|
17 }
18 } |