Esempio n. 1
0
        public static WebArchive createCheckDeployment()
        {
            WebArchive webArchive = ShrinkWrap.create(typeof(WebArchive));

            TestContainer.addContainerSpecificResourcesForNonPa(webArchive);
            return(webArchive);
        }
Esempio n. 2
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 = initWebArchiveDeployment();

            addContainerSpecificResourcesForNonPaWithoutWeld(archive);
            return(archive);
        }
Esempio n. 3
0
        public static WebArchive createDeployment()
        {
            JavaArchive[] engineRestClasses = EngineRestClasses;
            WebArchive    archive           = ShrinkWrap.create(typeof(WebArchive), "embedded-engine-rest.war").addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addAsWebInfResource("jboss-deployment-structure.xml").addAsManifestResource("org.camunda.bpm.engine.rest.spi.ProcessEngineProvider", "services/org.camunda.bpm.engine.rest.spi.ProcessEngineProvider").addAsLibraries(engineRestClasses).addClasses(typeof(CustomRestApplication), typeof(CustomProcessEngineProvider));

            return(archive);
        }
Esempio n. 4
0
        public static WebArchive clientDeployment()
        {
            WebArchive deployment = ShrinkWrap.create(typeof(WebArchive), "client.war").addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addClass(typeof(AbstractFoxPlatformIntegrationTest)).addClass(typeof(DependentScopedBean)).addAsLibraries(DeploymentHelper.EngineCdi);

            TestContainer.addContainerSpecificResourcesForNonPa(deployment);

            return(deployment);
        }
Esempio n. 5
0
        public static WebArchive clientDeployment()
        {
            WebArchive webArchive = ShrinkWrap.create(typeof(WebArchive), "client.war").addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addClass(typeof(ProgrammaticBeanLookup)).addClass(typeof(BeanManagerLookup)).addClass(typeof(AbstractFoxPlatformIntegrationTest)).addAsLibraries(DeploymentHelper.EngineCdi);

            TestContainer.addContainerSpecificResources(webArchive);

            return(webArchive);
        }
Esempio n. 6
0
        public static WebArchive processArchive()
        {
            WebArchive deployment = ShrinkWrap.create(typeof(WebArchive), "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);
        }
Esempio n. 7
0
        public static WebArchive createDeployment()
        {
            WebArchive webArchive = ShrinkWrap.create(typeof(WebArchive), "PaDataFormatConfiguratorFailingTest.war").addAsResource("META-INF/processes.xml").addClass(typeof(AbstractFoxPlatformIntegrationTest)).addClass(typeof(ReferenceStoringProcessApplication)).addAsResource("org/camunda/bpm/integrationtest/oneTaskProcess.bpmn").addClass(typeof(JsonSerializable)).addClass(typeof(FailingJsonDataFormatConfigurator)).addAsServiceProvider(typeof(DataFormatConfigurator), typeof(FailingJsonDataFormatConfigurator));

            TestContainer.addSpinJacksonJsonDataFormat(webArchive);

            return(webArchive);
        }
Esempio n. 8
0
        public static WebArchive clientDeployment()
        {
            WebArchive webArchive = ShrinkWrap.create(typeof(WebArchive), "client.war").addClass(typeof(AbstractFoxPlatformIntegrationTest));

            TestContainer.addContainerSpecificResources(webArchive);

            return(webArchive);
        }
Esempio n. 9
0
        public static WebArchive createDeployment1()
        {
            WebArchive archive = ShrinkWrap.create(typeof(WebArchive), "test1.war").addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addAsLibraries(DeploymentHelper.EngineCdi).addAsResource("META-INF/processes.xml", "META-INF/processes.xml").addAsResource("persistence-nonexisting-ds.xml", "META-INF/persistence.xml");

            TestContainer.addContainerSpecificResources(archive);

            return(archive);
        }
Esempio n. 10
0
        public static WebArchive processArchive1()
        {
            WebArchive deployment = initWebArchiveDeployment("pa1.war", "org/camunda/bpm/integrationtest/jobexecutor/IndependentJobExecutionTest.pa1.xml").addAsResource("org/camunda/bpm/integrationtest/jobexecutor/IndependentJobExecutionTest.process1.bpmn20.xml").setWebXML(new StringAsset(Descriptors.create(typeof(WebAppDescriptor)).version("3.0").exportAsString()));

            TestContainer.addContainerSpecificProcessEngineConfigurationClass(deployment);

            return(deployment);
        }
Esempio n. 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 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(TaskListenerProcessApplication)).addAsResource("org/camunda/bpm/integrationtest/functional/event/ProcessApplicationEventSupportTest.testTaskListener.bpmn20.xml");

            TestContainer.addContainerSpecificResourcesForNonPa(archive);

            return(archive);
        }
Esempio n. 12
0
        public static WebArchive createDeployment()
        {
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.jboss.shrinkwrap.api.spec.WebArchive webArchive = initWebArchiveDeployment("paEngine1.war", "org/camunda/bpm/integrationtest/paOnEngine1.xml").addAsResource("org/camunda/bpm/integrationtest/functional/cdi/CdiBeanResolutionTwoEnginesTest.testResolveBean.bpmn20.xml").addAsLibraries(org.camunda.bpm.integrationtest.util.DeploymentHelper.getEngineCdi());
            WebArchive webArchive = initWebArchiveDeployment("paEngine1.war", "org/camunda/bpm/integrationtest/paOnEngine1.xml").addAsResource("org/camunda/bpm/integrationtest/functional/cdi/CdiBeanResolutionTwoEnginesTest.testResolveBean.bpmn20.xml").addAsLibraries(DeploymentHelper.EngineCdi);

            TestContainer.addContainerSpecificProcessEngineConfigurationClass(webArchive);
            return(webArchive);
        }
Esempio n. 13
0
        public static void HandleExtractOption(CommandLineHandler handler, string file)
        {
            var webArchive = new WebArchive(file);

            Console.WriteLine("Openning archive...");
            webArchive.Open();
            Console.WriteLine("Extracting {0} files...", webArchive.FileCount);
            webArchive.Extract();
            Console.WriteLine("Done");
        }
Esempio n. 14
0
        public static void HandleListOption(CommandLineHandler handler, string file)
        {
            var webArchive = new WebArchive(file);

            Console.WriteLine("Openning archive...");
            webArchive.Open();

            Console.WriteLine(" Name".PadRight(50) + "| Size");
            Console.WriteLine("{0}{1}{0}", new string('-', 50), '+', new string('-', 6 + 10));
            for (int i = 0; i < webArchive.FileCount; i++)
            {
                Console.WriteLine(" {0} {1}", webArchive[i].Name.PadRight(50), webArchive[i].Size.ToString());
            }
        }
Esempio n. 15
0
        public override void start()
        {
            Properties serverProperties = readProperties();
            int        port             = int.Parse(serverProperties.getProperty(PORT_PROPERTY));

            tomcat         = new Tomcat();
            tomcat.Port    = port;
            tomcat.BaseDir = WorkingDir;

            tomcat.Host.AppBase         = WorkingDir;
            tomcat.Host.AutoDeploy      = true;
            tomcat.Host.DeployOnStartup = true;

            string contextPath = "/" + ContextPath;

            PomEquippedResolveStage resolver = Maven.configureResolver().useLegacyLocalRepo(true).workOffline().loadPomFromFile("pom.xml");

            WebArchive wa = ShrinkWrap.create(typeof(WebArchive), "rest-test.war").setWebXML(webXmlPath).addAsLibraries(resolver.resolve("org.codehaus.jackson:jackson-jaxrs:1.6.5").withTransitivity().asFile()).addAsLibraries(resolver.addDependencies(MavenDependencies.createDependency("org.mockito:mockito-core", ScopeType.TEST, false, MavenDependencies.createExclusion("org.hamcrest:hamcrest-core"))).resolve().withTransitivity().asFile()).addAsServiceProvider(typeof(ProcessEngineProvider), typeof(MockedProcessEngineProvider)).add(new ClassLoaderAsset("runtime/tomcat/context.xml"), "META-INF/context.xml").addPackages(true, "org.camunda.bpm.engine.rest");

            addRuntimeSpecificLibraries(wa, resolver);
            wa.WebXML = webXmlPath;

            string webAppPath = WorkingDir + "/" + ContextPath + ".war";

            wa.@as(typeof(ZipExporter)).exportTo(new File(webAppPath), true);

            tomcat.addWebapp(tomcat.Host, contextPath, webAppPath);

            try
            {
                tomcat.start();
            }
            catch (LifecycleException e)
            {
                throw new Exception(e);
            }
        }
Esempio n. 16
0
 protected internal abstract void addRuntimeSpecificLibraries(WebArchive wa, PomEquippedResolveStage resolver);
Esempio n. 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.WebArchive processArchive()
        public static WebArchive processArchive()
        {
            WebArchive archive = initWebArchiveDeployment().addAsResource("org/camunda/bpm/integrationtest/jobexecutor/TimerExecution.bpmn20.xml").addClass(typeof(SampleServiceBean));

            return(archive);
        }
Esempio n. 18
0
 public virtual void ReplaceSelectionWithArchive(WebArchive archive);
Esempio n. 19
0
        public static WebArchive createDeployment2()
        {
            WebArchive archive = ShrinkWrap.create(typeof(WebArchive), "test2.war").addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addAsLibraries(DeploymentHelper.EngineCdi).addAsResource("META-INF/processes.xml", "META-INF/processes.xml").addAsResource("persistence-nonexisting-ds.xml", "META-INF/persistence.xml").addClass(typeof(CustomServletPA));

            return(archive);
        }
Esempio n. 20
0
        public static WebArchive createDeployment1()
        {
            WebArchive archive = ShrinkWrap.create(typeof(WebArchive), "failingDeployment.war").addAsResource("META-INF/processes.xml", "META-INF/processes.xml").addAsResource("org/camunda/bpm/integrationtest/invoice-it.bpmn20.xml").addClass(typeof(PostDeployFailureApp));

            return(archive);
        }
Esempio n. 21
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 createProcessArchiveDeplyoment()
        public static EnterpriseArchive createProcessArchiveDeplyoment()
        {
            WebArchive processArchiveWar = initWebArchiveDeployment().addClass(typeof(ExampleDelegate)).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(typeof(EnterpriseArchive), "test-app.ear").addAsModule(processArchiveWar));
        }
Esempio n. 22
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(PostDeployInjectApp));

            return(archive);
        }
Esempio n. 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.WebArchive processArchive()
        public static WebArchive processArchive()
        {
            WebArchive archive = ShrinkWrap.create(typeof(WebArchive), "test.war").addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addAsLibraries(DeploymentHelper.EngineCdi).addAsResource("org/camunda/bpm/integrationtest/deployment/cfg/processes-additional-resource-suffixes.xml", "META-INF/processes.xml").addClass(typeof(AbstractFoxPlatformIntegrationTest)).addClass(typeof(DummyProcessApplication)).addAsResource("org/camunda/bpm/integrationtest/deployment/cfg/invoice-it.bpmn20.xml").addAsResource("org/camunda/bpm/integrationtest/deployment/cfg/hello.groovy").addAsResource("org/camunda/bpm/integrationtest/deployment/cfg/hello.py");

            return(archive);
        }