Package org.activiti.engine.identity

Examples of org.activiti.engine.identity.UserQuery.singleResult()


 
  public void testQueryByFirstName() {
    UserQuery query = identityService.createUserQuery().userFirstName("Gonzo");
    verifyQueryResults(query, 1);
   
    User result = query.singleResult();
    assertEquals("gonzo", result.getId());
  }
 
  public void testQueryByInvalidFirstName() {
    UserQuery query = identityService.createUserQuery().userFirstName("invalid");
View Full Code Here


 
  public void testQueryByLastName() {
    UserQuery query = identityService.createUserQuery().userLastName("Bear");
    verifyQueryResults(query, 1);
   
    User result = query.singleResult();
    assertEquals("fozzie", result.getId());
  }
 
  public void testQueryByInvalidLastName() {
    UserQuery query = identityService.createUserQuery().userLastName("invalid");
View Full Code Here

    verifyQueryResults(query, 3);
   
    query = identityService.createUserQuery().memberOfGroup("frogs");
    verifyQueryResults(query, 1);
   
    User result = query.singleResult();
    assertEquals("kermit", result.getId());
  }
 
  public void testQueryByInvalidMemberOf() {
    UserQuery query = identityService.createUserQuery().memberOfGroup("invalid");
View Full Code Here

 
  public void testQueryByFirstName() {
    UserQuery query = identityService.createUserQuery().userFirstName("Gonzo");
    verifyQueryResults(query, 1);
   
    User result = query.singleResult();
    assertEquals("gonzo", result.getId());
  }
 
  public void testQueryByInvalidFirstName() {
    UserQuery query = identityService.createUserQuery().userFirstName("invalid");
View Full Code Here

 
  public void testQueryByLastName() {
    UserQuery query = identityService.createUserQuery().userLastName("Bear");
    verifyQueryResults(query, 1);
   
    User result = query.singleResult();
    assertEquals("fozzie", result.getId());
  }
 
  public void testQueryByInvalidLastName() {
    UserQuery query = identityService.createUserQuery().userLastName("invalid");
View Full Code Here

    verifyQueryResults(query, 3);
   
    query = identityService.createUserQuery().memberOfGroup("frogs");
    verifyQueryResults(query, 1);
   
    User result = query.singleResult();
    assertEquals("kermit", result.getId());
  }
 
  public void testQueryByInvalidMemberOf() {
    UserQuery query = identityService.createUserQuery().memberOfGroup("invalid");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.