assertEquals(0,level1[0].getChildren().length);
}
public void testParseSymbolicName()
{
ClassLoaderResolver clr = new JDOClassLoaderResolver();
NonManagedPluginRegistry mgr = new NonManagedPluginRegistry(clr, "EXCEPTION");
Bundle bundle1 = mgr.registerBundle(clr.getResource("/org/jpox/samples/plugin/MANIFEST1.MF",null));
mgr.registerPluginExtensions(clr.getResource("/org/jpox/samples/plugin/plugin1expoint.xml",null),bundle1);
assertEquals(2,mgr.getExtensionPoints().length);
assertNull(mgr.getExtensionPoint("testID"));
assertNull(mgr.getExtensionPoint("testID2"));
assertNotNull(mgr.getExtensionPoint("org.jpox.plugin.test1.testID"));
assertNotNull(mgr.getExtensionPoint("org.jpox.plugin.test1.testID2"));
Bundle bundle2 = mgr.registerBundle(clr.getResource("/org/jpox/samples/plugin/MANIFEST2.MF",null));
mgr.registerPluginExtensions(clr.getResource("/org/jpox/samples/plugin/plugin1expoint.xml",null),bundle2);
assertEquals(4,mgr.getExtensionPoints().length);
assertNotNull(mgr.getExtensionPoint("org.jpox.plugin.test2.testID"));
assertNotNull(mgr.getExtensionPoint("org.jpox.plugin.test2.testID2"));
Extension[] ex = mgr.getExtensionPoint("org.jpox.plugin.test2.testID").getExtensions();