Example #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);
        }
Example #2
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);
        }