Package org.activiti.engine.repository

Examples of org.activiti.engine.repository.DeploymentQuery


    assertEquals(1, query.list().size());
    assertEquals(1, query.count());
  }
 
  public void testQueryByInvalidName() {
    DeploymentQuery query = repositoryService.createDeploymentQuery().deploymentName("invalid");
    assertNull(query.singleResult());
    assertEquals(0, query.list().size());
    assertEquals(0, query.count());
   
    try {
      repositoryService.createDeploymentQuery().deploymentName(null);
      fail();
    } catch (ActivitiException e) {}
View Full Code Here


      fail();
    } catch (ActivitiException e) {}
  }
 
  public void testQueryByNameLike() {
    DeploymentQuery query = repositoryService.createDeploymentQuery().deploymentNameLike("%activiti%");
    assertEquals(2, query.list().size());
    assertEquals(2, query.count());
   
    try {
      query.singleResult();
      fail();
    } catch (ActivitiException e) {}
  }
View Full Code Here

      fail();
    } catch (ActivitiException e) {}
  }
 
  public void testQueryByInvalidNameLike() {
    DeploymentQuery query = repositoryService.createDeploymentQuery().deploymentNameLike("invalid");
    assertNull(query.singleResult());
    assertEquals(0, query.list().size());
    assertEquals(0, query.count());
   
    try {
      repositoryService.createDeploymentQuery().deploymentNameLike(null);
      fail();
    } catch (ActivitiException e) {}
View Full Code Here

      fail();
    } catch (ActivitiException e) {}
  }
 
  public void testQueryByNameAndCategory() {
    DeploymentQuery query = repositoryService.createDeploymentQuery().deploymentCategory("testCategory").deploymentNameLike("%activiti%");
    assertEquals(1, query.list().size());
    assertEquals(1, query.count());
    assertNotNull(query.singleResult());
  }
View Full Code Here

        .category("two")
        .addClasspathResource("org/activiti/engine/test/repository/two.bpmn20.xml")
        .deploy()
        .getId();
           
      DeploymentQuery query = repositoryService.createDeploymentQuery();
      assertEquals(4, query.list().size());
     
      Set<String> deploymentNames = getDeploymentNames(repositoryService
        .createDeploymentQuery()
        .deploymentCategory("one")
        .list());
View Full Code Here

TOP

Related Classes of org.activiti.engine.repository.DeploymentQuery

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.