@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 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 createDeployment() { return ShrinkWrap.create( WebArchive.class ) .addClass( AuditedEntity.class ) .addAsWebInfResource( EmptyAsset.INSTANCE, "beans.xml" ) .addAsResource( new StringAsset( persistenceXml().exportAsString() ), "META-INF/persistence.xml" ); }
@Deployment public static WebArchive buildDeployment() { WebArchive war = ShrinkWrap.create( WebArchive.class ) .setManifest( "org/hibernate/test/wf/ddl/manifest.mf" ) .addClass( WildFlyDdlEntity.class ) // .addAsManifestResource( EmptyAsset.INSTANCE, "beans.xml") .addAsResource( new StringAsset( persistenceXml().exportAsString() ), PERSISTENCE_XML_RESOURCE_NAME ) .addAsResource( "org/hibernate/test/wf/ddl/log4j.properties", "log4j.properties" ); System.out.println( war.toString(true) ); return war; }
@Deployment(order=1) public static WebArchive delegateDeployment() { WebArchive webArchive = 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 TestContainer.addContainerSpecificResourcesForNonPa(webArchive); return webArchive; }
@Deployment public static WebArchive createDeployment() { return initWebArchiveDeployment() .addAsResource("org/camunda/bpm/integrationtest/functional/connect/PaConnectSupportTest.connectorServiceTask.bpmn20.xml") .addClass(TestConnector.class) .addClass(TestConnectorRequest.class) .addClass(TestConnectorResponse.class) .addClass(TestConnectors.class); }
@Deployment public static WebArchive createProcessArchiveDeplyoment() { return initWebArchiveDeployment() .addClass(GetDeserializableVariableDelegate.class) .addClass(SetVariableDelegate.class) .addClass(SerializableVariable.class) .addAsResource("org/camunda/bpm/integrationtest/functional/classloading/DeserializableVariableTest.testVariableDeserializationOnProcessApplicationRestart.bpmn20.xml"); }
@Deployment(name="clientDeployment") public static WebArchive clientDeployment() { WebArchive webArchive = ShrinkWrap.create(WebArchive.class, "client.war") .addClass(AbstractFoxPlatformIntegrationTest.class); TestContainer.addContainerSpecificResources(webArchive); return webArchive; }
@Deployment(name="clientDeployment") public static WebArchive clientDeployment() { WebArchive webArchive = ShrinkWrap.create(WebArchive.class, "client.war") .addClass(AbstractFoxPlatformIntegrationTest.class); TestContainer.addContainerSpecificResources(webArchive); return webArchive; }
@Deployment(name="clientDeployment") public static WebArchive clientDeployment() { WebArchive webArchive = ShrinkWrap.create(WebArchive.class, "client.war") .addClass(AbstractFoxPlatformIntegrationTest.class); TestContainer.addContainerSpecificResources(webArchive); return webArchive; }
@Deployment(name="clientDeployment") public static WebArchive clientDeployment() { WebArchive deployment = ShrinkWrap.create(WebArchive.class, "client.war") .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml") .addClass(AbstractFoxPlatformIntegrationTest.class) .addClass(DependentScopedBean.class) .addAsLibraries(DeploymentHelper.getEngineCdi()); TestContainer.addContainerSpecificResourcesForNonPa(deployment); return deployment; }
@Deployment(managed=false, name=DEPLOYMENT) public static WebArchive createDeployment1() { WebArchive archive = ShrinkWrap.create(WebArchive.class, "failingDeployment.war") .addAsResource("META-INF/processes.xml", "META-INF/processes.xml") .addAsResource("org/camunda/bpm/integrationtest/invoice-it.bpmn20.xml") .addClass(PostDeployFailureApp.class); return archive; }
@Deployment(name="pa2") public static WebArchive createCalledProcessDeployment() { return initWebArchiveDeployment("pa2.war") .addClass(CaseVariableBean.class) .addAsResource("org/camunda/bpm/integrationtest/functional/cdi/CdiBeanCallActivityResolutionTest.calledCase.cmmn"); }
@Deployment public static WebArchive processArchive() { return initWebArchiveDeployment() .addClass(DependentScopedBean.class) .addAsResource("org/camunda/bpm/integrationtest/functional/cdi/CdiBeanDependentScoped.testResolveBean.bpmn20.xml"); }
@Deployment public static WebArchive createProcessArchiveDeplyoment() { return initWebArchiveDeployment() .addClass(ExampleCaseVariableListener.class) .addAsResource("org/camunda/bpm/integrationtest/functional/classloading/CaseVariableListenerResolutionTest.cmmn"); }
@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 public static EnterpriseArchive createProcessArchiveDeplyoment() { WebArchive processArchiveWar = initWebArchiveDeployment() .addClass(ExampleDelegate.class) .addAsResource("org/camunda/bpm/integrationtest/functional/classloading/JavaDelegateResolutionTest.testResolveClass.bpmn20.xml") .addAsResource("org/camunda/bpm/integrationtest/functional/classloading/JavaDelegateResolutionTest.testResolveClassFromJobExecutor.bpmn20.xml"); return ShrinkWrap.create(EnterpriseArchive.class, "test-app.ear") .addAsModule(processArchiveWar); }
@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 public static WebArchive createProcessApplication() { BpmnModelInstance process = Bpmn.createExecutableProcess(TEST_PROCESS) .startEvent() .serviceTask() .camundaDelegateExpression("${bpmnElementRetrievalDelegate}") .done(); return initWebArchiveDeployment() .addClass(BpmnElementRetrievalDelegate.class) .addAsResource(new StringAsset(Bpmn.convertToString(process)), "testProcess.bpmn20.xml"); }