From 8b76b5400fd95a96d8fae0a827bb978417a41fc8 Mon Sep 17 00:00:00 2001 From: Philipp Ossler Date: Tue, 26 Jan 2016 08:33:20 +0100 Subject: [PATCH] feat(engine): fix failing test with tenant-id related to #CAM-5218 --- .../deployment/cfg/TestDeploymentTenantId.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/qa/integration-tests-engine/src/test/java/org/camunda/bpm/integrationtest/deployment/cfg/TestDeploymentTenantId.java b/qa/integration-tests-engine/src/test/java/org/camunda/bpm/integrationtest/deployment/cfg/TestDeploymentTenantId.java index b5f98df4f8a..f25f570d90e 100644 --- a/qa/integration-tests-engine/src/test/java/org/camunda/bpm/integrationtest/deployment/cfg/TestDeploymentTenantId.java +++ b/qa/integration-tests-engine/src/test/java/org/camunda/bpm/integrationtest/deployment/cfg/TestDeploymentTenantId.java @@ -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; @@ -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