Beispiel #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive processArchive()
        public static WebArchive processArchive()
        {
            Asset pa1ProcessesXml = TestHelper.getStringAsAssetWithReplacements(PROCESSES_XML, new string[][]
            {
                new string[] { "PA_NAME", "PA1" }
            });

            Asset pa2ProcessesXml = TestHelper.getStringAsAssetWithReplacements(PROCESSES_XML, new string[][]
            {
                new string[] { "PA_NAME", "PA2" }
            });

            Asset pa3ProcessesXml = TestHelper.getStringAsAssetWithReplacements(PROCESSES_XML, new string[][]
            {
                new string[] { "PA_NAME", "PA3" }
            });

            Asset[] processAssets = TestHelper.generateProcessAssets(9);

            JavaArchive pa2 = ShrinkWrap.create(typeof(JavaArchive), "pa2.jar").addAsResource(pa2ProcessesXml, "META-INF/processes.xml").addAsResource(processAssets[3], "process3.bpmn").addAsResource(processAssets[4], "directory/process4.bpmn").addAsResource(processAssets[5], "alternateDirectory/process5.bpmn");

            JavaArchive pa3 = ShrinkWrap.create(typeof(JavaArchive), "pa3.jar").addAsResource(pa3ProcessesXml, "META-INF/processes.xml").addAsResource(processAssets[6], "process6.bpmn").addAsResource(processAssets[7], "directory/process7.bpmn").addAsResource(processAssets[8], "alternateDirectory/process8.bpmn");

            WebArchive deployment = ShrinkWrap.create(typeof(WebArchive), "test.war").addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addAsLibraries(DeploymentHelper.EngineCdi).addAsLibraries(pa2).addAsLibraries(pa3).addAsResource(pa1ProcessesXml, "META-INF/processes.xml").addAsResource(processAssets[0], "process0.bpmn").addAsResource(processAssets[1], "directory/process1.bpmn").addAsResource(processAssets[2], "alternateDirectory/process2.bpmn").addClass(typeof(AbstractFoxPlatformIntegrationTest));

            TestContainer.addContainerSpecificResources(deployment);

            return(deployment);
        }
Beispiel #2
0
        public static WebArchive clientDeployment()
        {
            WebArchive deployment = ShrinkWrap.create(typeof(WebArchive), "client.war").addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addClass(typeof(AbstractFoxPlatformIntegrationTest)).addAsLibraries(DeploymentHelper.EngineCdi);

            TestContainer.addContainerSpecificResourcesForNonPa(deployment);
            return(deployment);
        }
Beispiel #3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive processArchive()
        public static WebArchive processArchive()
        {
            WebArchive archive = ShrinkWrap.create(typeof(WebArchive), "test.war").addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addAsLibraries(DeploymentHelper.EngineCdi).addAsResource("singleEngine.xml", "META-INF/processes.xml").addClass(typeof(AbstractFoxPlatformIntegrationTest));

            TestContainer.addContainerSpecificResources(archive);

            return(archive);
        }
Beispiel #4
0
        public static WebArchive createDeployment1()
        {
            WebArchive webArchive = ShrinkWrap.create(typeof(WebArchive), "pa1.war").addAsResource("META-INF/processes.xml").addClass(typeof(AbstractFoxPlatformIntegrationTest)).addClass(typeof(ProcessApplication1)).addClass(typeof(JsonSerializable)).addClass(typeof(RuntimeServiceDelegate)).addAsResource("org/camunda/bpm/integrationtest/functional/spin/paContextSwitch.bpmn20.xml").addClass(typeof(JsonDataFormatConfigurator)).addAsServiceProvider(typeof(DataFormatConfigurator), typeof(JsonDataFormatConfigurator));

            TestContainer.addSpinJacksonJsonDataFormat(webArchive);

            return(webArchive);
        }
Beispiel #5
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive createDeployment()
        public static WebArchive createDeployment()
        {
            WebArchive archive = ShrinkWrap.create(typeof(WebArchive), "test.war").addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addAsLibraries(DeploymentHelper.EngineCdi).addAsResource("META-INF/processes.xml", "META-INF/processes.xml").addClass(typeof(AbstractFoxPlatformIntegrationTest)).addClass(typeof(CdiEventSupportProcessApplication)).addClass(typeof(EventObserverCdiBean)).addAsResource("org/camunda/bpm/integrationtest/functional/event/ProcessApplicationEventSupportTest.testExecutionListener.bpmn20.xml");

            TestContainer.addContainerSpecificResourcesForNonPa(archive);

            return(archive);
        }
Beispiel #6
0
        public static WebArchive delegateDeployment()
        {
            WebArchive webArchive = ShrinkWrap.create(typeof(WebArchive), "service.war").addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addClass(typeof(AbstractFoxPlatformIntegrationTest)).addClass(typeof(InvocationCounter)).addClass(typeof(InvocationCounterService)).addClass(typeof(InvocationCounterServiceLocal)).addClass(typeof(InvocationCounterServiceBean));     // @Stateless ejb

            TestContainer.addContainerSpecificResourcesForNonPa(webArchive);

            return(webArchive);
        }
Beispiel #7
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public static org.jboss.shrinkwrap.api.spec.EnterpriseArchive deployment()
        public static EnterpriseArchive deployment()
        {
            // this creates the process archive as a WAR file
            WebArchive processArchive = initWebArchiveDeployment().addAsResource("org/camunda/bpm/integrationtest/testDeployProcessArchive.bpmn20.xml").addClass(typeof(TestFoxPlatformClientAsLibInWebModule));

            // this packages the WAR file inside an EAR file
            return(ShrinkWrap.create(typeof(EnterpriseArchive), "test-application.ear").addAsModule(processArchive));
        }
Beispiel #8
0
        public static WebArchive clientDeployment()
        {
            WebArchive webArchive = ShrinkWrap.create(typeof(WebArchive), "client.war").addClass(typeof(AbstractFoxPlatformIntegrationTest));

            TestContainer.addContainerSpecificResources(webArchive);

            return(webArchive);
        }
Beispiel #9
0
        public static WebArchive delegateDeployment()
        {
            WebArchive webArchive = ShrinkWrap.create(typeof(WebArchive), "service.war").addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addClass(typeof(AbstractFoxPlatformIntegrationTest)).addClass(typeof(StartProcessSLSB)).addClass(typeof(StartProcessInterface)).addAsManifestResource(new StringAsset("Dependencies: org.camunda.bpm.camunda-engine"), "MANIFEST.MF");     // get access to engine classes

            TestContainer.addContainerSpecificResourcesForNonPa(webArchive);

            return(webArchive);
        }
Beispiel #10
0
        public static WebArchive delegateDeployment()
        {
            WebArchive webArchive = ShrinkWrap.create(typeof(WebArchive), "service.war").addAsLibraries(DeploymentHelper.EjbClient).addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addClass(typeof(AbstractFoxPlatformIntegrationTest)).addClass(typeof(LocalSingletonBean)).addClass(typeof(BusinessInterface));     // the business interface

            TestContainer.addContainerSpecificResourcesForNonPa(webArchive);

            return(webArchive);
        }
Beispiel #11
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive createDeployment()
        public static WebArchive createDeployment()
        {
            WebArchive webArchive = ShrinkWrap.create(typeof(WebArchive), "test.war").addAsResource("META-INF/processes.xml").addClass(typeof(AbstractFoxPlatformIntegrationTest)).addClass(typeof(TestLogger));

            TestContainer.addContainerSpecificResourcesWithoutWeld(webArchive);
            TestContainer.addCommonLoggingDependency(webArchive);

            return(webArchive);
        }
Beispiel #12
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public static org.jboss.shrinkwrap.api.spec.EnterpriseArchive onePaAsLib()
        public static EnterpriseArchive onePaAsLib()
        {
            JavaArchive processArchiveJar = ShrinkWrap.create(typeof(JavaArchive), "processes.jar").addAsResource("org/camunda/bpm/integrationtest/testDeployProcessArchive.bpmn20.xml").addAsResource("META-INF/processes.xml", "META-INF/processes.xml");

            JavaArchive foxPlatformClientJar = DeploymentHelper.EjbClient;

            WebArchive testJar = ShrinkWrap.create(typeof(WebArchive), "test.war").addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").setManifest(new ByteArrayAsset(("Class-Path: " + foxPlatformClientJar.Name + "\n").GetBytes())).addClass(typeof(AbstractFoxPlatformIntegrationTest)).addClass(typeof(TestFoxPlatformClientAsEjbModule_onePaAsLib));

            return(ShrinkWrap.create(typeof(EnterpriseArchive), "onePaAsLib.ear").addAsLibrary(processArchiveJar).addAsModule(foxPlatformClientJar).addAsModule(testJar).addAsLibrary(DeploymentHelper.EngineCdi));
        }
Beispiel #13
0
        public static WebArchive archive2()
        {
            JavaArchive processArchiveJar = ShrinkWrap.create(typeof(JavaArchive), "test-v2.jar").addAsResource("org/camunda/bpm/integrationtest/deployment/war/testDeployProcessArchiveUnchanged.bpmn20.xml", "process.bpmn").addAsResource("META-INF/processes.xml");

            WebArchive archive = ShrinkWrap.create(typeof(WebArchive), "pa2.war").addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addAsLibraries(DeploymentHelper.EngineCdi).addAsLibraries(processArchiveJar).addClass(typeof(AbstractFoxPlatformIntegrationTest)).addClass(typeof(TestWarDeploymentDeployChangedOnlyWithJarAsLib));

            TestContainer.addContainerSpecificResources(archive);

            return(archive);
        }
Beispiel #14
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public static org.jboss.shrinkwrap.api.spec.EnterpriseArchive paAsEjbModule() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
        public static EnterpriseArchive paAsEjbModule()
        {
            JavaArchive processArchive1Jar = ShrinkWrap.create(typeof(JavaArchive), "pa.jar").addClass(typeof(EeComponent)).addAsResource("org/camunda/bpm/integrationtest/deployment/ear/paAsEjbModule-process.bpmn20.xml").addAsResource("org/camunda/bpm/integrationtest/deployment/ear/paAsEjbModule-pa.xml", "META-INF/processes.xml");

            JavaArchive foxPlatformClientJar = DeploymentHelper.EjbClient;

            WebArchive testJar = ShrinkWrap.create(typeof(WebArchive), "paAsEjbModule-test.war").addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addClass(typeof(AbstractFoxPlatformIntegrationTest)).addClass(typeof(TestFoxPlatformClientAsEjbModule_pasAsEjbModule));

            return(ShrinkWrap.create(typeof(EnterpriseArchive), "paAsEjbModule.ear").addAsModule(processArchive1Jar).addAsModule(foxPlatformClientJar).addAsModule(testJar).addAsLibrary(DeploymentHelper.EngineCdi));
        }
Beispiel #15
0
        /// <summary>
        /// <pre>
        ///   |-- test.war
        ///       |-- WEB-INF
        ///           |-- classes
        ///               |-- META-INF/processes.xml                   resourceRootPath: classpath:directory
        ///               |-- directory/processes/process.bpmn         (1)
        ///           |-- lib/
        ///               |-- pa0.jar
        ///                   |-- directory/processes/process.bpmn     (2)
        /// </pre>
        ///
        /// Processes (1) + (2) will have the same resource name (= "processes/process.bpmn"),
        /// so that only one process should be deployed.
        ///
        /// </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive processArchive()
        public static WebArchive processArchive()
        {
            Asset paProcessesXml = TestHelper.getStringAsAssetWithReplacements(PROCESSES_XML, new string[][]
            {
                new string[] { "PA_NAME", "PA0" }
            });


            Asset[] processAssets = TestHelper.generateProcessAssets(2);

            JavaArchive pa0 = ShrinkWrap.create(typeof(JavaArchive), "pa0.jar").addAsResource(processAssets[0], "directory/processes/process.bpmn");

            WebArchive archive = ShrinkWrap.create(typeof(WebArchive), "test.war").addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addAsLibraries(DeploymentHelper.EngineCdi).addAsLibraries(pa0).addAsResource(paProcessesXml, "META-INF/processes.xml").addAsResource(processAssets[1], "directory/processes/process.bpmn").addClass(typeof(AbstractFoxPlatformIntegrationTest)).addClass(typeof(TestResourceName));

            TestContainer.addContainerSpecificResources(archive);

            return(archive);
        }
Beispiel #16
0
        /// <summary>
        /// <pre>
        ///   |-- test.war
        ///       |-- WEB-INF
        ///           |-- classes
        ///               |-- alternateDirectory/process4.bpmn
        ///               |-- alternateDirectory/subDirectory/process5.bpmn
        ///           |-- lib/
        ///               |-- pa0.jar
        ///                   |-- META-INF/processes.xml
        ///                   |-- process0.bpmn
        ///               |-- pa1.jar
        ///                   |-- META-INF/processes.xml
        ///                   |-- processes/process1.bpmn
        ///               |-- pa2.jar
        ///                   |-- META-INF/processes.xml                resourceRootPath: pa:directory
        ///                   |-- directory/process2.bpmn
        ///                   |-- directory/subDirectory/process3.bpmn
        ///               |-- pa3.jar
        ///                   |-- META-INF/processes.xml                resourceRootPath: classpath:alternateDirectory
        /// </pre>
        /// </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive processArchive()
        public static WebArchive processArchive()
        {
            Asset pa1ProcessesXml = TestHelper.getStringAsAssetWithReplacements(PROCESSES_XML, new string[][]
            {
                new string[] { "PA_NAME", "PA0" }
            });

            Asset pa2ProcessesXml = TestHelper.getStringAsAssetWithReplacements(PROCESSES_XML, new string[][]
            {
                new string[] { "PA_NAME", "PA1" }
            });

            Asset pa3ProcessesXml = TestHelper.getStringAsAssetWithReplacements(PROCESSES_XML_WITH_RESOURCE_ROOT_PATH, new string[][]
            {
                new string[] { "PA_NAME", "PA2" },
                new string[] { "RESOURCE_ROOT_PATH", "pa:directory" }
            });

            Asset pa4ProcessesXml = TestHelper.getStringAsAssetWithReplacements(PROCESSES_XML_WITH_RESOURCE_ROOT_PATH, new string[][]
            {
                new string[] { "PA_NAME", "PA3" },
                new string[] { "RESOURCE_ROOT_PATH", "classpath:alternateDirectory" }
            });

            Asset[] processAssets = TestHelper.generateProcessAssets(6);

            JavaArchive pa1 = ShrinkWrap.create(typeof(JavaArchive), "pa0.jar").addAsResource(pa1ProcessesXml, "META-INF/processes.xml").addAsResource(processAssets[0], "process0.bpmn");

            JavaArchive pa2 = ShrinkWrap.create(typeof(JavaArchive), "pa1.jar").addAsResource(pa2ProcessesXml, "META-INF/processes.xml").addAsResource(processAssets[1], "processes/process1.bpmn");

            JavaArchive pa3 = ShrinkWrap.create(typeof(JavaArchive), "pa2.jar").addAsResource(pa3ProcessesXml, "META-INF/processes.xml").addAsResource(processAssets[2], "directory/process2.bpmn").addAsResource(processAssets[3], "directory/subDirectory/process3.bpmn");

            JavaArchive pa4 = ShrinkWrap.create(typeof(JavaArchive), "pa3.jar").addAsResource(pa4ProcessesXml, "META-INF/processes.xml");

            WebArchive archive = ShrinkWrap.create(typeof(WebArchive), "test.war").addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addAsLibraries(DeploymentHelper.EngineCdi).addAsLibraries(pa1).addAsLibraries(pa2).addAsLibraries(pa3).addAsLibraries(pa4).addAsResource(processAssets[4], "alternateDirectory/process4.bpmn").addAsResource(processAssets[5], "alternateDirectory/subDirectory/process5.bpmn").addClass(typeof(AbstractFoxPlatformIntegrationTest)).addClass(typeof(TestContainer)).addClass(typeof(TestResourceName));

            TestContainer.addContainerSpecificResources(archive);

            return(archive);
        }
Beispiel #17
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public static org.jboss.shrinkwrap.api.spec.JavaArchive createDeployment()
        public static JavaArchive createDeployment()
        {
            return(ShrinkWrap.create(typeof(JavaArchive)).addPackages(true, "org.camunda.bpm.engine.cdi").addAsManifestResource("org/camunda/bpm/engine/cdi/test/impl/util/beans.xml", "beans.xml"));
        }
Beispiel #18
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment @TargetsContainer("test-domain") public static org.jboss.shrinkwrap.api.spec.WebArchive create1()
        public static WebArchive create1()
        {
            return(ShrinkWrap.create(typeof(WebArchive), "test.war"));
        }
Beispiel #19
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive processArchive()
        public static WebArchive processArchive()
        {
            // deploy spring Process Application (does not include ejb-client nor cdi modules)
            return(ShrinkWrap.create(typeof(WebArchive), "test.war").addClass(typeof(ExampleBean)).addAsResource("org/camunda/bpm/integrationtest/functional/spring/SpringExpressionResolvingTest.testResolveBean.bpmn20.xml").addAsResource("org/camunda/bpm/integrationtest/functional/spring/SpringExpressionResolvingTest.testResolveBeanFromJobExecutor.bpmn20.xml").addAsResource("META-INF/processes.xml", "META-INF/processes.xml").addAsWebInfResource("org/camunda/bpm/integrationtest/functional/spring/web.xml", "web.xml").addAsWebInfResource("org/camunda/bpm/integrationtest/functional/spring/SpringPAExpressionResolvingTest-context.xml", "applicationContext.xml").addAsLibraries(DeploymentHelper.EngineSpring));
        }
Beispiel #20
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive processArchive()
        public static WebArchive processArchive()
        {
            return(ShrinkWrap.create(typeof(WebArchive), "test.war").addClass(typeof(AbstractFoxPlatformIntegrationTest)).addAsWebInfResource("org/camunda/bpm/integrationtest/deployment/spring/SpringLookupManagedProcessEngineTest-context.xml", "applicationContext.xml").addAsLibraries(DeploymentHelper.EngineSpring).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"));
        }
Beispiel #21
0
 public static JavaArchive createDeploymentWithProducerMethod()
 {
     return(ShrinkWrap.create(typeof(JavaArchive)).addClass(typeof(ProgrammaticBeanLookup)).addClass(typeof(ProcessEngineServicesProducer)).addClass(typeof(BeanWithProducerMethods)).addAsManifestResource("org/camunda/bpm/engine/cdi/test/impl/util/beans.xml", "beans.xml"));
 }
Beispiel #22
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment @OverProtocol("jmx-as7") public static org.jboss.shrinkwrap.api.spec.JavaArchive processArchive()
        public static JavaArchive processArchive()
        {
            return(ShrinkWrap.create(typeof(JavaArchive)).addClass(typeof(AbstractFoxPlatformIntegrationTest)).addClass(typeof(DefaultEjbProcessApplication)).addAsResource("META-INF/processes.xml", "META-INF/processes.xml").addAsResource("org/camunda/bpm/integrationtest/testDeployProcessArchive.bpmn20.xml"));
        }
Beispiel #23
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public static org.jboss.shrinkwrap.api.spec.EnterpriseArchive paAsEjbModule()
        public static EnterpriseArchive paAsEjbModule()
        {
            JavaArchive processArchive1Jar = ShrinkWrap.create(typeof(JavaArchive), "pa.jar").addClass(typeof(AbstractFoxPlatformIntegrationTest)).addClass(typeof(TestPaAnnotatedEjb)).addClass(typeof(AnnotatedEjbPa)).addAsResource("org/camunda/bpm/integrationtest/deployment/ear/process1.bpmn20.xml", "process.bpmn").addAsResource("META-INF/processes.xml", "deployment-descriptor-with-custom-filename.xml").addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");

            return(ShrinkWrap.create(typeof(EnterpriseArchive), "paAsEjbModule.ear").addAsModule(processArchive1Jar).addAsLibrary(DeploymentHelper.EngineCdi));
        }
Beispiel #24
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public static org.jboss.shrinkwrap.api.spec.EnterpriseArchive paAsEjbModule() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
        public static EnterpriseArchive paAsEjbModule()
        {
            JavaArchive processArchive1Jar = ShrinkWrap.create(typeof(JavaArchive), "pa.jar").addClass(typeof(DefaultEjbProcessApplication)).addClass(typeof(NamedCdiBean)).addClass(typeof(AbstractFoxPlatformIntegrationTest)).addClass(typeof(TestPaAsEjbJar)).addAsResource("org/camunda/bpm/integrationtest/deployment/ear/paAsEjbJar-process.bpmn20.xml").addAsResource("META-INF/processes.xml", "META-INF/processes.xml").addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");

            return(ShrinkWrap.create(typeof(EnterpriseArchive), "paAsEjbModule.ear").addAsModule(processArchive1Jar).addAsLibrary(DeploymentHelper.EngineCdi));
        }
Beispiel #25
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive createDeployment()
        public static WebArchive createDeployment()
        {
            WebArchive archive = ShrinkWrap.create(typeof(WebArchive), "test.war").addClass(typeof(CustomEjbProcessApplication)).addClass(typeof(AbstractFoxPlatformIntegrationTest));

            return(archive);
        }
Beispiel #26
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive processArchive()
        public static WebArchive processArchive()
        {
            return(initWebArchiveDeployment().addAsLibraries(ShrinkWrap.create(typeof(JavaArchive), "engine1.jar").addAsResource("singleEngine.xml", "META-INF/processes.xml"), ShrinkWrap.create(typeof(JavaArchive), "engine2.jar").addAsResource("twoEngines.xml", "META-INF/processes.xml")));
        }
Beispiel #27
0
        public static WebArchive createDeployment2()
        {
            WebArchive webArchive = ShrinkWrap.create(typeof(WebArchive), "pa2.war").addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addAsLibraries(DeploymentHelper.EngineCdi).addAsResource("META-INF/processes.xml").addClass(typeof(AbstractFoxPlatformIntegrationTest)).addClass(typeof(ProcessApplication2));

            return(webArchive);
        }
Beispiel #28
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive processArchive()
        public static WebArchive processArchive()
        {
            return(ShrinkWrap.create(typeof(WebArchive), "test.war").addClass(typeof(AbstractFoxPlatformIntegrationTest)).addClass(typeof(CustomSpringServletProcessApplication)).addAsWebInfResource("org/camunda/bpm/integrationtest/deployment/spring/SpringServletPALifecycleTest-context.xml", "applicationContext.xml").addAsLibraries(DeploymentHelper.EngineSpring).addAsWebInfResource("org/camunda/bpm/integrationtest/deployment/spring/web.xml", "web.xml"));
        }
Beispiel #29
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive createDeployment()
        public static WebArchive createDeployment()
        {
            WebArchive webArchive = ShrinkWrap.create(typeof(WebArchive), "PaDataFormatTest.war").addAsResource("META-INF/processes.xml").addClass(typeof(AbstractFoxPlatformIntegrationTest)).addAsResource("org/camunda/bpm/integrationtest/oneTaskProcess.bpmn").addClass(typeof(Foo)).addClass(typeof(FooDataFormat)).addClass(typeof(FooDataFormatProvider)).addClass(typeof(FooSpin)).addAsServiceProvider(typeof(DataFormatProvider), typeof(FooDataFormatProvider)).addClass(typeof(ReferenceStoringProcessApplication));

            return(webArchive);
        }
Beispiel #30
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive processArchive()
        public static WebArchive processArchive()
        {
            return(ShrinkWrap.create(typeof(WebArchive), "test.war").addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addAsLibraries(DeploymentHelper.EngineCdi).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").addClass(typeof(AbstractFoxPlatformIntegrationTest)).addClass(typeof(DummyProcessApplication)));
        }