checkThrowable(NoClassDefFoundError.class, t0.loadError);
}
public void testLoading() throws Exception
{
ClassLoaderSystem system = createClassLoaderSystemWithModifiedBootstrap();
MockClassLoaderPolicy j0 = createMockClassLoaderPolicy("j0");
j0.setPathsAndPackageNames(Support.class);
j0.setImportAll(true);
j0.setIncluded(Class0.class);
ClassLoader cl0 = system.registerClassLoaderPolicy(j0);
MockClassLoaderPolicy j1 = createMockClassLoaderPolicy("j1");
j1.setPathsAndPackageNames(Support.class);
j1.setImportAll(true);
j1.setIncluded(Class1.class);
ClassLoader cl1 = system.registerClassLoaderPolicy(j1);
MockClassLoaderPolicy j2 = createMockClassLoaderPolicy("j2");
j2.setPathsAndPackageNames(Support.class);
j2.setImportAll(true);
j2.setIncluded(Class2.class);
ClassLoader cl2 = system.registerClassLoaderPolicy(j2);
LoadThread t0 = new LoadThread(Class2.class, cl0, cl2, "testLoading.T0");
LoadThread t1 = new LoadThread(Class0.class, cl1, cl0, "testLoading.T1");
LoadThread t2 = new LoadThread(Class1.class, cl2, cl1, "testLoading.T2");
t0.start();