@Deployment public static WebArchive processArchive() { Asset pa2ProcessesXml = TestHelper.getStringAsAssetWithReplacements( PROCESSES_XML, new String[][] {new String[] {"PA_NAME", "PA2"}}); Asset[] processAssets = TestHelper.generateProcessAssets(9); JavaArchive pa2 = ShrinkWrap.create(JavaArchive.class, "pa2.jar") .addAsResource(pa2ProcessesXml, "META-INF/processes.xml"); WebArchive deployment = ShrinkWrap.create(WebArchive.class, "test.war") .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml") .addAsLibraries(DeploymentHelper.getEngineCdi()) .addAsLibraries(pa2) .addAsResource(processAssets[0], "process0.bpmn") .addAsResource(processAssets[1], "directory/process1.bpmn") .addAsResource(processAssets[2], "alternateDirectory/process2.bpmn") .addClass(AbstractFoxPlatformIntegrationTest.class); TestContainer.addContainerSpecificResources(deployment); return deployment; }
@Deployment(name = "pa1") public static WebArchive createDeployment1() { WebArchive webArchive = ShrinkWrap.create(WebArchive.class, "pa1.war") .addAsResource("META-INF/processes.xml") .addClass(AbstractFoxPlatformIntegrationTest.class) .addClass(TestContainer.class) .addClass(ProcessApplication1.class) .addClass(JsonSerializable.class) .addClass(RuntimeServiceDelegate.class) .addAsResource( "org/camunda/bpm/integrationtest/functional/spin/paContextSwitch.bpmn20.xml") .addClass(JsonDataFormatConfigurator.class) .addAsServiceProvider(DataFormatConfigurator.class, JsonDataFormatConfigurator.class); TestContainer.addSpinJacksonJsonDataFormat(webArchive); return webArchive; }