use of org.mule.runtime.module.deployment.impl.internal.builder.DomainBundleFileBuilder in project mule by mulesoft.
the class DomainBundleDeploymentTestCase method failsToDeployDomainBundleWithCorruptedDomain.
@Test
public void failsToDeployDomainBundleWithCorruptedDomain() throws Exception {
ApplicationFileBuilder applicationFileBuilder = new ApplicationFileBuilder(dummyAppDescriptorFileBuilder).dependingOn(dummyDomainFileBuilder);
DomainBundleFileBuilder domainBundleFileBuilder = new DomainBundleFileBuilder(new DomainFileBuilder("dummy-domain")).containing(applicationFileBuilder);
addDomainBundleFromBuilder(domainBundleFileBuilder);
startDeployment();
assertDeploymentFailure(domainBundleDeploymentListener, domainBundleFileBuilder.getId());
assertDeploymentFailure(domainDeploymentListener, dummyDomainFileBuilder.getId());
assertDeploymentFailure(applicationDeploymentListener, dummyAppDescriptorFileBuilder.getId());
}
Aggregations