Exemple #1
0
        public virtual void testDeploymentSourceProperty()
        {
            registerProcessEngine();

            TestApplicationWithResources processApplication = new TestApplicationWithResources();

            processApplication.deploy();

            Deployment deployment = repositoryService.createDeploymentQuery().singleResult();

            assertNotNull(deployment);
            assertEquals(org.camunda.bpm.engine.repository.ProcessApplicationDeployment_Fields.PROCESS_APPLICATION_DEPLOYMENT_SOURCE, deployment.Source);

            processApplication.undeploy();
        }
Exemple #2
0
        public virtual void testDeployWithoutTenantId()
        {
            registerProcessEngine();

            TestApplicationWithResources processApplication = new TestApplicationWithResources();

            processApplication.deploy();

            Deployment deployment = repositoryService.createDeploymentQuery().singleResult();

            assertNotNull(deployment);
            assertNull(deployment.TenantId);

            processApplication.undeploy();
        }
Exemple #3
0
        public virtual void testDeployAppWithResources()
        {
            registerProcessEngine();

            TestApplicationWithResources processApplication = new TestApplicationWithResources();

            processApplication.deploy();

            Deployment deployment = repositoryService.createDeploymentQuery().singleResult();

            assertNotNull(deployment);

            IList <Resource> deploymentResources = repositoryService.getDeploymentResources(deployment.Id);

            assertEquals(4, deploymentResources.Count);

            processApplication.undeploy();
            assertEquals(0, repositoryService.createDeploymentQuery().count());
        }