all.addRequiredInput(DeploymentStage.class.getName());
assertTrue(all.getInputs().contains(DeploymentStage.class.getName()));
TestSimpleDeployer empty = new TestSimpleDeployer();
DeployerClient main = createMainDeployer(missing, all, empty);
String name = "simple";
Deployment deployment = createSimpleDeployment(name);
MutableAttachments attachments = (MutableAttachments) deployment.getPredeterminedManagedObjects();
attachments.addAttachment(DeploymentStage.class, DeploymentStages.DESCRIBE);
Set<String> singleton;
main.deploy(deployment);
try
{
DeploymentUnit unit = getDeploymentUnit(main, name);
singleton = Collections.singleton(unit.getName());
assertEmpty(missing.getDeployedUnits());
assertEquals(singleton, all.getDeployedUnits());
assertEquals(singleton, empty.getDeployedUnits());
}
finally
{
main.undeploy(deployment);
}
assertEmpty(missing.getUndeployedUnits());
assertEquals(singleton, all.getUndeployedUnits());
assertEquals(singleton, empty.getUndeployedUnits());