@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;
  }
 public static void addContainerSpecificResources(WebArchive webArchive) {
   webArchive
       .addAsManifestResource("context.xml")
       .addAsLibraries(DeploymentHelper.getWeld())
       .addClass(TestProcessApplication.class)
       .addAsWebInfResource("web.xml");
 }
  @Deployment(name = "pa2")
  public static WebArchive createDeployment2() {
    WebArchive webArchive =
        ShrinkWrap.create(WebArchive.class, "pa2.war")
            .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
            .addAsLibraries(DeploymentHelper.getEngineCdi())
            .addAsResource("META-INF/processes.xml")
            .addClass(AbstractFoxPlatformIntegrationTest.class)
            .addClass(TestContainer.class)
            .addClass(ProcessApplication2.class);

    return webArchive;
  }
 public static void addJodaTimeJacksonModule(WebArchive webArchive) {
   webArchive.addAsLibraries(DeploymentHelper.getJodaTimeModuleForServer("tomcat"));
 }
 public static void addSpinJacksonJsonDataFormat(WebArchive webArchive) {
   webArchive.addAsLibraries(DeploymentHelper.getSpinJacksonJsonDataFormatForServer("tomcat"));
 }
 public static void addContainerSpecificResourcesForNonPa(WebArchive webArchive) {
   webArchive
       .addAsManifestResource("context.xml")
       .addAsLibraries(DeploymentHelper.getWeld())
       .addAsWebInfResource("web.xml");
 }