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

            TestContainer.addContainerSpecificResourcesForNonPa(webArchive);
            return(webArchive);
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
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);
        }
Ejemplo n.º 5
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);
        }
Ejemplo n.º 6
0
        public static WebArchive clientDeployment()
        {
            WebArchive webArchive = ShrinkWrap.create(typeof(WebArchive), "client.war").addClass(typeof(AbstractFoxPlatformIntegrationTest));

            TestContainer.addContainerSpecificResources(webArchive);

            return(webArchive);
        }
Ejemplo n.º 7
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);
        }
Ejemplo n.º 8
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);
        }
Ejemplo n.º 9
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);
        }
Ejemplo n.º 10
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);
            }
        }
 /// <summary>
 /// In CSS terms, shrink-wrap width is analogous to an inline-block element as opposed to a block-level element. Some container layouts always shrink-wrap their children, effectively ignoring this property (e.g., Ext.layout.container.HBox, Ext.layout.container.VBox, Ext.layout.component.Dock). The Default is \"Height\".
 /// </summary>
 public virtual TBuilder ShrinkWrap(ShrinkWrap shrinkWrap)
 {
     this.ToComponent().ShrinkWrap = shrinkWrap;
     return(this as TBuilder);
 }
Ejemplo n.º 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.WebArchive processArchive()
        public static WebArchive processArchive()
        {
            return(ShrinkWrap.create(typeof(WebArchive), "pa1.war").addAsResource("META-INF/processes.xml").addClass(typeof(AbstractFoxPlatformIntegrationTest)).addClass(typeof(CustomNameServletPA)).addAsResource("org/camunda/bpm/integrationtest/testDeployProcessArchive.bpmn20.xml"));
        }
Ejemplo n.º 13
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);
        }
Ejemplo n.º 14
0
 public static WebArchive createDeployment()
 {
     return(ShrinkWrap.create(typeof(WebArchive), "app.war").addAsResource("META-INF/processes.xml").addClass(typeof(AbstractFoxPlatformIntegrationTest)).addClass(typeof(ProcessApplicationWithInvocationContext)).addClass(typeof(NoOpJavaDelegate)).addClass(typeof(SignalableTask)).addAsResource("org/camunda/bpm/integrationtest/functional/context/InvocationContextTest-timer.bpmn").addAsResource("org/camunda/bpm/integrationtest/functional/context/InvocationContextTest-message.bpmn").addAsResource("org/camunda/bpm/integrationtest/functional/context/InvocationContextTest-signalTask.bpmn"));
 }
Ejemplo n.º 15
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));
        }
Ejemplo n.º 16
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);
        }
Ejemplo 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 createDeployment()
        public static WebArchive createDeployment()
        {
            WebArchive archive = ShrinkWrap.create(typeof(WebArchive), "test.war").addClass(typeof(PostDeployInjectApp));

            return(archive);
        }
Ejemplo n.º 18
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);
        }
Ejemplo n.º 19
0
 public static WebArchive processArchive()
 {
     return(ShrinkWrap.create(typeof(WebArchive)).addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addAsLibraries(DeploymentHelper.EjbClient).addAsResource("META-INF/processes.xml", "META-INF/processes.xml").addAsLibraries(ShrinkWrap.create(typeof(JavaArchive), "engine1.jar").addAsResource("singleEngine.xml", "META-INF/processes.xml"), ShrinkWrap.create(typeof(JavaArchive), "engine2.jar").addAsResource("singleEngine.xml", "META-INF/processes.xml")));
 }
Ejemplo n.º 20
0
 public static WebArchive processArchive()
 {
     return(ShrinkWrap.create(typeof(WebArchive), "test.war").addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addAsLibraries(DeploymentHelper.EjbClient).addAsResource("META-INF/processes.xml", "META-INF/processes.xml").addAsResource("org/camunda/bpm/integrationtest/functional/drools/TestDeploymentWithDroolsTaskFails.testDeployDroolsFails.bpmn20.xml"));
 }
Ejemplo 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.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(ErrorDelegate)).addClass(typeof(RetryConfig)).addAsResource("org/camunda/bpm/integrationtest/functional/RetryConfigurationTest.testResolveRetryConfigBean.bpmn20.xml").addClass(typeof(CustomServletProcessApplication)).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/SpringRetryConfigurationTest-context.xml", "applicationContext.xml").addAsLibraries(DeploymentHelper.EngineSpring).addAsManifestResource("org/camunda/bpm/integrationtest/functional/spring/jboss-deployment-structure.xml", "jboss-deployment-structure.xml"));
        }
Ejemplo 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.JavaArchive createDeployment()
        public static JavaArchive createDeployment()
        {
            return(ShrinkWrap.create(typeof(JavaArchive)).addPackages(true, "org.camunda.bpm.engine.cdi").addAsManifestResource("META-INF/beans.xml", "beans.xml"));
        }