Examples of UserSearchCriteria


Examples of org.sonatype.security.usermanagement.UserSearchCriteria

  public void testSearch()
      throws Exception
  {
    UserManager userLocator = lookup(UserManager.class, "Simple");

    Set<User> result = userLocator.searchUsers(new UserSearchCriteria("adm"));
    Assert.assertEquals(1, result.size());
    // your test could be a bit more robust
    Assert.assertEquals(result.iterator().next().getUserId(), "admin-simple");
  }
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.