Exemplo n.º 1
0
  // -------------------------------------------------------------------------
  @Test
  public void test_search_name_noMatch() {
    UserSearchRequest request = new UserSearchRequest();
    request.setName("FooBar");
    UserSearchResult test = _usrMaster.search(request);

    assertEquals(0, test.getDocuments().size());
  }
Exemplo n.º 2
0
  @Test
  public void test_search_name_case() {
    UserSearchRequest request = new UserSearchRequest();
    request.setName("TESTUser102");
    UserSearchResult test = _usrMaster.search(request);

    assertEquals(1, test.getDocuments().size());
    assert102(test.getDocuments().get(0));
  }
Exemplo n.º 3
0
  @Test
  public void test_search_name_wildcard() {
    UserSearchRequest request = new UserSearchRequest();
    request.setName("TestUser1*");
    UserSearchResult test = _usrMaster.search(request);

    assertEquals(2, test.getDocuments().size());
    assert101(test.getDocuments().get(0));
    assert102(test.getDocuments().get(1));
  }