361362363364365366367368369370371
assertEquals(DeploymentState.UNDEPLOYED, main.getDeploymentState(child1Name)); assertEquals(DeploymentState.UNDEPLOYED, main.getDeploymentState(child2Name)); main.removeDeployment(deployment); main.process(); main.checkComplete(); } public void testDeployParentMultipleChildrenFailInChild1Deployer1() throws Exception { DeployerClient main = getMainDeployer();
385386387388389390391392393394395
assertEquals(DeploymentState.ERROR, main.getDeploymentState(child1Name)); assertEquals(DeploymentState.UNDEPLOYED, main.getDeploymentState(child2Name)); main.removeDeployment(deployment); main.process(); main.checkComplete(); } public void testDeployParentMultipleChildrenFailInChild1Deployer2() throws Exception { DeployerClient main = getMainDeployer();
409410411412413414415416417418419
assertEquals(DeploymentState.ERROR, main.getDeploymentState(child1Name)); assertEquals(DeploymentState.UNDEPLOYED, main.getDeploymentState(child2Name)); main.removeDeployment(deployment); main.process(); main.checkComplete(); } public void testDeployParentMultipleChildrenFailInChild2Deployer1() throws Exception { DeployerClient main = getMainDeployer();
433434435436437438439440441442443
assertEquals(DeploymentState.UNDEPLOYED, main.getDeploymentState(child1Name)); assertEquals(DeploymentState.ERROR, main.getDeploymentState(child2Name)); main.removeDeployment(deployment); main.process(); main.checkComplete(); } public void testDeployParentMultipleChildrenFailInChild2Deployer2() throws Exception { DeployerClient main = getMainDeployer();
6364656667686970717273
makeFail(deployment, deployer); main.addDeployment(deployment); main.process(); try { main.checkComplete(deployment); fail("Should not be here."); } catch (DeploymentException e) { assertInstanceOf(e, IncompleteDeploymentException.class);
7879808182838485868788
{ DeployerClient main = getMainDeployer(); Deployment deployment = createSimpleDeployment("failure"); main.addDeployment(deployment); main.process(); main.checkComplete(deployment); } public void testStructureFailure() throws Exception { DeployerClient main = getMainDeployer();
105106107108109110111112113114115
catch (Throwable ignored) { } try { main.checkComplete(); fail("Should not be here."); } catch (DeploymentException e) { assertInstanceOf(e, IncompleteDeploymentException.class);
134135136137138139140141142143144
main.addDeployment(dA); main.process(); try { main.checkComplete(dA); fail("Should not be here."); } catch (DeploymentException e) { assertInstanceOf(e, IncompleteDeploymentException.class);
146147148149150151152153154155156
Deployment dB = createSimpleDeployment("B"); addAttachment(dB, null); main.deploy(dB); main.checkComplete(dA); } public void testAllThenHalf() throws Exception { DeployerClient main = getDependencyMainDeployer();
163164165166167168169170171172173
Deployment dB = createSimpleDeployment("B"); addAttachment(dB, null); main.deploy(dB); main.checkComplete(dA); main.undeploy(dB); try {