super(name);
}
public void testHierarchyBefore() throws Exception
{
ClassLoaderSystem system = createClassLoaderSystem();
ClassLoaderDomain parent = system.createAndRegisterDomain("parent", ParentPolicy.BEFORE_BUT_JAVA_ONLY);
ClassLoaderDomain child = system.createAndRegisterDomain("child", ParentPolicy.BEFORE, parent);
MockClassLoaderPolicy parentPolicy = createMockClassLoaderPolicy();
parentPolicy.setPathsAndPackageNames(MockLoader.class, Loader.class);
ClassLoader parentClassLoader = system.registerClassLoaderPolicy(parent, parentPolicy);
MockClassLoaderPolicy childPolicy = createMockClassLoaderPolicy();
childPolicy.setPathsAndPackageNames(MockLoader.class, Loader.class);
ClassLoader classLoader = system.registerClassLoaderPolicy(child, childPolicy);
assertLoadClass(MockLoader.class, classLoader, parentClassLoader);
}