Skip to content

Commit

Permalink
feat(engine): fix failing test with tenant-id
Browse files Browse the repository at this point in the history
related to #CAM-5218
  • Loading branch information
saig0 committed Jan 26, 2016
1 parent 0c550d3 commit 8b76b54
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@
import static org.junit.Assert.assertThat;

import org.camunda.bpm.integrationtest.util.AbstractFoxPlatformIntegrationTest;
import org.camunda.bpm.integrationtest.util.DeploymentHelper;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.junit.Test;
import org.junit.runner.RunWith;
Expand All @@ -28,9 +31,13 @@ public class TestDeploymentTenantId extends AbstractFoxPlatformIntegrationTest {

@Deployment
public static WebArchive processArchive() {
return initWebArchiveDeployment()
return ShrinkWrap.create(WebArchive.class, "test.war")
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
.addAsLibraries(DeploymentHelper.getEngineCdi())
.addAsResource("org/camunda/bpm/integrationtest/deployment/cfg/processes-with-tenant-id.xml", "META-INF/processes.xml")
.addAsResource("org/camunda/bpm/integrationtest/deployment/cfg/invoice-it.bpmn20.xml");
.addAsResource("org/camunda/bpm/integrationtest/deployment/cfg/invoice-it.bpmn20.xml")
.addClass(AbstractFoxPlatformIntegrationTest.class)
.addClass(DummyProcessApplication.class);
}

@Test
Expand Down

0 comments on commit 8b76b54

Please sign in to comment.