return suite(DeployerSingleDeploymentTestCase.class);
}
protected void checkFailedDeployOnStructure(DeployerClient mainDeployer, final int failed, int size) throws Throwable
{
final StructureBuilder builder = new AbstractStructureBuilder();
StructuralDeployers structuralDeployers = new StructuralDeployers()
{
public DeploymentContext determineStructure(Deployment deployment) throws DeploymentException
{
String name = deployment.getName();
if (name.endsWith("deployment" + failed))
throw new RuntimeException(String.valueOf(failed));
return builder.populateContext(deployment, StructureMetaDataFactory.createStructureMetaData());
}
};
((MainDeployerImpl)mainDeployer).setStructuralDeployers(structuralDeployers);
Deployment[] deployments = new Deployment[size];