8182838485868788899091
} catch (DeploymentException e) { checkThrowable(IncompleteDeploymentException.class, e); } mainDeployer.undeploy(ad); try { mainDeployer.checkComplete(); fail("Should not be here!"); }
919293949596979899
} catch (DeploymentException e) { checkThrowable(IncompleteDeploymentException.class, e); } mainDeployer.undeploy(cd); mainDeployer.checkComplete(); } }
9899100101102103104105106107108
URL resource = cl.getResource(resourceName); assertNotNull(resource); // dunno why direct URL equals fails? assertEquals(testResource.toExternalForm(), resource.toExternalForm()); mainDeployer.undeploy(ad); mainDeployer.checkComplete(); assertFalse("dynamic classes should NOT be in the classpath", unit.getClassPath().contains(file)); } public void testHostNameCreator() throws Exception
7172737475767778798081
addRequirePackage(clmd, B.class, new VersionRange(v1, true, v2, true)); assertDeploy(mainDeployer, cd); mainDeployer.checkComplete(); mainDeployer.undeploy(bd); try { mainDeployer.checkComplete(); fail("Should not be here!"); }
7475767778798081828384
{ assertAlias(true, "A"); } finally { mainDeployer.undeploy(ad); assertAlias(false, "A"); } } public void testAliasRemoveOnChild() throws Exception
{ assertAlias(true, "A/B"); } finally { mainDeployer.undeploy(ad); assertAlias(false, "A/B"); } } protected void assertAlias(boolean exists, String name) throws Exception
6970717273747576777879
ClassLoader cl = unit.getClassLoader(); assertNoResource("a/b/c/test-resource-deployment5", cl); } finally { main.undeploy(deployment); } } public void testVFSClassLoaderDependsOnVFS() throws Exception {
101102103104105106107108109110111
ClassLoader cl = unit.getClassLoader(); assertGetResource("a/b/c/test-resource-deployment5", cl); } finally { main.undeploy(deployment); } } finally { undeploy(unit5);