示例#1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testResourceName()
        public virtual void testResourceName()
        {
            ProcessEngine processEngine = ProgrammaticBeanLookup.lookup(typeof(ProcessEngine));

            Assert.assertNotNull(processEngine);

            RepositoryService repositoryService = processEngine.RepositoryService;

            ProcessDefinitionQuery query = repositoryService.createProcessDefinitionQuery();

            ProcessDefinition definition = query.processDefinitionKey("process-0").singleResult();

            Assert.assertEquals("process0.bpmn", definition.ResourceName);

            definition = query.processDefinitionKey("process-1").singleResult();
            Assert.assertEquals("processes/process1.bpmn", definition.ResourceName);

            definition = query.processDefinitionKey("process-2").singleResult();
            Assert.assertEquals("process2.bpmn", definition.ResourceName);

            definition = query.processDefinitionKey("process-3").singleResult();
            Assert.assertEquals("subDirectory/process3.bpmn", definition.ResourceName);

            definition = query.processDefinitionKey("process-4").singleResult();
            Assert.assertEquals("process4.bpmn", definition.ResourceName);

            definition = query.processDefinitionKey("process-5").singleResult();
            Assert.assertEquals("subDirectory/process5.bpmn", definition.ResourceName);
        }
示例#2
0
 public ProcessEngineAwareStep(ProcessEngine processEngine)
 {
     this.processEngine = processEngine;
     runtimeService     = processEngine.RuntimeService;
     taskService        = processEngine.TaskService;
     repositoryService  = processEngine.RepositoryService;
 }
示例#3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test @OperateOnDeployment(value=PA2) public void testDeployProcessArchive()
        public virtual void testDeployProcessArchive()
        {
            Assert.assertNotNull(processEngine);
            RepositoryService repositoryService = processEngine.RepositoryService;
            long count = repositoryService.createProcessDefinitionQuery().processDefinitionKey("testDeployProcessArchive").count();

            Assert.assertEquals(1, count);
        }
示例#4
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setup()
        public virtual void setup()
        {
            engine            = PerfTestProcessEngine.Instance;
            taskService       = engine.TaskService;
            historyService    = engine.HistoryService;
            runtimeService    = engine.RuntimeService;
            repositoryService = engine.RepositoryService;
        }
示例#5
0
 public TestFixture(ProcessEngine processEngine)
 {
     this.processEngine = processEngine;
     repositoryService  = processEngine.RepositoryService;
     runtimeService     = processEngine.RuntimeService;
     managementService  = processEngine.ManagementService;
     taskService        = processEngine.TaskService;
 }
示例#6
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setup()
        public virtual void setup()
        {
            engine            = processEngineRule.ProcessEngine;
            taskService       = engine.TaskService;
            historyService    = engine.HistoryService;
            runtimeService    = engine.RuntimeService;
            repositoryService = engine.RepositoryService;
        }
示例#7
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testDeployProcessArchive()
        public virtual void testDeployProcessArchive()
        {
            ProcessEngine processEngine = ProgrammaticBeanLookup.lookup(typeof(ProcessEngine));

            Assert.assertNotNull(processEngine);
            RepositoryService repositoryService = processEngine.RepositoryService;
            long count = repositoryService.createProcessDefinitionQuery().processDefinitionKey("testDeployProcessArchive").count();

            Assert.assertEquals(1, count);
        }
示例#8
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testDeployProcessArchive()
        public virtual void testDeployProcessArchive()
        {
            Assert.assertNotNull(processEngine);
            RepositoryService repositoryService = processEngine.RepositoryService;

            org.camunda.bpm.engine.repository.Deployment deployment = repositoryService.createDeploymentQuery().singleResult();

            Assert.assertNotNull(deployment);
            Assert.assertEquals(org.camunda.bpm.engine.repository.ProcessApplicationDeployment_Fields.PROCESS_APPLICATION_DEPLOYMENT_SOURCE, deployment.Source);
        }
示例#9
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testMultipleClasspathRoots()
        public virtual void testMultipleClasspathRoots()
        {
            ProcessEngine processEngine = ProgrammaticBeanLookup.lookup(typeof(ProcessEngine));

            Assert.assertNotNull(processEngine);

            RepositoryService repositoryService = processEngine.RepositoryService;

            ProcessDefinitionQuery query = repositoryService.createProcessDefinitionQuery();

            long count = query.count();

            Assert.assertEquals(1, count);
        }