Search in sources :

Example 6 with DomainBundleFileBuilder

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());
}
Also used : ApplicationFileBuilder(org.mule.runtime.module.deployment.impl.internal.builder.ApplicationFileBuilder) DomainFileBuilder(org.mule.runtime.module.deployment.impl.internal.builder.DomainFileBuilder) DomainBundleFileBuilder(org.mule.runtime.module.deployment.impl.internal.builder.DomainBundleFileBuilder) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)6 ApplicationFileBuilder (org.mule.runtime.module.deployment.impl.internal.builder.ApplicationFileBuilder)6 DomainBundleFileBuilder (org.mule.runtime.module.deployment.impl.internal.builder.DomainBundleFileBuilder)6 DomainFileBuilder (org.mule.runtime.module.deployment.impl.internal.builder.DomainFileBuilder)2