public static WebArchive defaultWebArchive() { return create(WebArchive.class, "test.war") .addPackages(true, "org.javaee7.jaspic") .deleteClass(ArquillianBase.class) .addAsWebInfResource(resource("web.xml")) .addAsWebInfResource(resource("jboss-web.xml")) .addAsWebInfResource(resource("glassfish-web.xml")); }
@Deployment public static WebArchive createDeployment() { return ShrinkWrap.create( WebArchive.class ) .addClass( Kryptonite.class ) .addAsWebInfResource( EmptyAsset.INSTANCE, "beans.xml" ) .addAsResource( new StringAsset( persistenceXml().exportAsString() ), "META-INF/persistence.xml" ); }
@Deployment public static WebArchive processArchive() { return ShrinkWrap.create(WebArchive.class, "test.war") .addClass(AbstractFoxPlatformIntegrationTest.class) .addAsWebInfResource("org/camunda/bpm/integrationtest/deployment/spring/SpringLookupManagedProcessEngineTest-context.xml", "applicationContext.xml") .addAsLibraries(DeploymentHelper.getEngineSpring()) .addAsManifestResource("org/camunda/bpm/integrationtest/deployment/spring/jboss-deployment-structure.xml", "jboss-deployment-structure.xml") .addAsWebInfResource("org/camunda/bpm/integrationtest/deployment/spring/web.xml", "web.xml"); }
@Deployment(name="pa", order=2) public static WebArchive processArchive() { return initWebArchiveDeployment() .addClass(LocalSFSBClientDelegateBean.class) .addAsResource("org/camunda/bpm/integrationtest/functional/ejb/local/LocalSFSBInvocationTest.testInvokeBean.bpmn20.xml") .addAsWebInfResource("org/camunda/bpm/integrationtest/functional/ejb/local/jboss-deployment-structure.xml","jboss-deployment-structure.xml"); }
public static WebArchive initWebArchiveDeployment(String name, String processesXmlPath) { WebArchive archive = ShrinkWrap.create(WebArchive.class, name) .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml") .addAsLibraries(DeploymentHelper.getEngineCdi()) .addAsResource(processesXmlPath, "META-INF/processes.xml") .addClass(AbstractFoxPlatformIntegrationTest.class) .addClass(TestConstants.class); TestContainer.addContainerSpecificResources(archive); return archive; }
@Deployment public static WebArchive processArchive() { return ShrinkWrap.create(WebArchive.class, "test.war") .addClass(AbstractFoxPlatformIntegrationTest.class) .addClass(CustomSpringServletProcessApplication.class) .addAsWebInfResource("org/camunda/bpm/integrationtest/deployment/spring/SpringServletPALifecycleTest-context.xml", "applicationContext.xml") .addAsLibraries(DeploymentHelper.getEngineSpring()) .addAsWebInfResource("org/camunda/bpm/integrationtest/deployment/spring/web.xml", "web.xml"); }
@Deployment public static WebArchive createDeployment() { return ShrinkWrap.create( WebArchive.class ) .addClass( Kryptonite.class ) .addAsWebInfResource( EmptyAsset.INSTANCE, "beans.xml" ) .addAsResource( new StringAsset( persistenceXml().exportAsString() ), "META-INF/persistence.xml" ); }
@Deployment(name="pa", order=2) public static WebArchive processArchive() { return initWebArchiveDeployment() .addClass(LocalSLSBClientDelegateBean.class) .addAsResource("org/camunda/bpm/integrationtest/functional/ejb/local/LocalSLSBInvocationTest.testInvokeBean.bpmn20.xml") .addAsWebInfResource("org/camunda/bpm/integrationtest/functional/ejb/local/jboss-deployment-structure.xml","jboss-deployment-structure.xml"); }
@Deployment(name="clientDeployment") public static WebArchive clientDeployment() { // the test is deployed as a seperate deployment WebArchive deployment = ShrinkWrap.create(WebArchive.class, "client.war") .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml") .addClass(AbstractFoxPlatformIntegrationTest.class) .addAsLibraries(DeploymentHelper.getEngineCdi()); TestContainer.addContainerSpecificResourcesForNonPa(deployment); return deployment; }
@Deployment public static WebArchive createDeployment() { return ShrinkWrap.create( WebArchive.class ) .addClass( AuditedEntity.class ) .addAsWebInfResource( EmptyAsset.INSTANCE, "beans.xml" ) .addAsResource( new StringAsset( persistenceXml().exportAsString() ), "META-INF/persistence.xml" ); }
@Deployment(name="pa", order=2) public static WebArchive processArchive() { return initWebArchiveDeployment() .addClass(LocalSingletonBeanClientDelegateBean.class) .addAsResource("org/camunda/bpm/integrationtest/functional/ejb/local/LocalSingletonBeanInvocationTest.testInvokeBean.bpmn20.xml") .addAsWebInfResource("org/camunda/bpm/integrationtest/functional/ejb/local/jboss-deployment-structure.xml","jboss-deployment-structure.xml"); }
@Deployment(name="clientDeployment") public static WebArchive clientDeployment() { WebArchive deployment = ShrinkWrap.create(WebArchive.class, "client.war") .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml") .addClass(AbstractFoxPlatformIntegrationTest.class) .addAsLibraries(DeploymentHelper.getEngineCdi()); TestContainer.addContainerSpecificResourcesForNonPa(deployment); return deployment; }
@Deployment(name="clientDeployment") public static WebArchive clientDeployment() { WebArchive deployment = ShrinkWrap.create(WebArchive.class, "client.war") .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml") .addClass(AbstractFoxPlatformIntegrationTest.class); TestContainer.addContainerSpecificResourcesForNonPa(deployment); return deployment; }
@Deployment(name="pa1") public static WebArchive createProcessApplication1() { return initWebArchiveDeployment("pa1.war") .addAsWebInfResource(new StringAsset(JYTHON_MODULE_DEPENDENCY),"jboss-deployment-structure.xml") .addAsResource(createScriptTaskProcess("python", "", "process1"), "process1.bpmn20.xml"); }
@Deployment(name="clientDeployment") public static WebArchive clientDeployment() { WebArchive deployment = ShrinkWrap.create(WebArchive.class, "client.war") .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml") .addClass(AbstractFoxPlatformIntegrationTest.class) .addAsLibraries(DeploymentHelper.getEngineCdi()); TestContainer.addContainerSpecificResourcesForNonPa(deployment); return deployment; }
@Deployment(managed=false, name=DEPLOYMENT) public static WebArchive processArchive() { WebArchive deployment = ShrinkWrap.create(WebArchive.class, "test.war") .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml") .addAsResource("META-INF/processes.xml", "META-INF/processes.xml") .addAsResource("org/camunda/bpm/integrationtest/deployment/war/TestWarDeploymentWithBrokenBpmnXml.testXmlInvalid.bpmn20.xml"); TestContainer.addContainerSpecificResources(deployment); return deployment; }
@Deployment(name="pa1") public static WebArchive createProcessApplication1() { return initWebArchiveDeployment("pa1.war") .addAsWebInfResource(new StringAsset(GROOVY_MODULE_DEPENDENCY),"jboss-deployment-structure.xml") .addAsResource(createScriptTaskProcess("groovy", "", "process1"), "process1.bpmn20.xml"); }
@Deployment(managed=false, name="deployment") public static WebArchive processArchive() { return ShrinkWrap.create(WebArchive.class, "test.war") .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml") .addAsLibraries(DeploymentHelper.getEjbClient()) .addAsResource("META-INF/processes.xml", "META-INF/processes.xml") .addAsResource("org/camunda/bpm/integrationtest/functional/drools/TestDeploymentWithDroolsTaskFails.testDeployDroolsFails.bpmn20.xml"); }
@Deployment(order=1) public static WebArchive delegateDeployment() { return ShrinkWrap.create(WebArchive.class, "service.war") .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml") .addClass(AbstractFoxPlatformIntegrationTest.class) .addClass(InvocationCounter.class) // @RequestScoped CDI bean .addClass(InvocationCounterService.class) // interface (remote) .addClass(InvocationCounterServiceLocal.class) // interface (local) .addClass(InvocationCounterServiceBean.class); // @Stateless ejb }
@Deployment(name="pa2") public static WebArchive createProcessApplication2() { return initWebArchiveDeployment("pa2.war") .addClass(CustomClass.class) .addAsWebInfResource(new StringAsset(GROOVY_MODULE_DEPENDENCY),"jboss-deployment-structure.xml") .addAsResource(createScriptTaskProcess("groovy", SCRIPT_WITH_IMPORT, "process2"), "process2.bpmn20.xml"); }