main.checkComplete();
}
public void testDeployParentMultipleChildrenFailInChild2Deployer2() throws Exception
{
DeployerClient main = getMainDeployer();
Deployment deployment = createSimpleDeployment(parentName);
addChild(deployment, child1Path);
ContextInfo child2 = addChild(deployment, child2Path);
makeFail(child2, deployer2);
main.addDeployment(deployment);
main.process();
assertEquals(expectedParentChild1Child2, deployer1.getDeployedUnits());
assertEquals(expectedParentChild1Child2, deployer1.getUndeployedUnits());
assertEquals(expectedParentChild1Child2, deployer2.getDeployedUnits());
assertEquals(expectedParentChild1, deployer2.getUndeployedUnits());
assertEquals(DeploymentState.ERROR, main.getDeploymentState(deployment.getName()));
assertEquals(DeploymentState.UNDEPLOYED, main.getDeploymentState(child1Name));
assertEquals(DeploymentState.ERROR, main.getDeploymentState(child2Name));
main.removeDeployment(deployment);
main.process();
main.checkComplete();
}