Esempio n. 1
0
  // -------------------------------------------------------------------------
  @Test
  public void test_search_stringUserId_noMatch() {
    UserSearchRequest request = new UserSearchRequest();
    request.setUserId("FooBar");
    UserSearchResult test = _usrMaster.search(request);

    assertEquals(0, test.getDocuments().size());
  }
Esempio n. 2
0
  @Test
  public void test_search_stringUserId() {
    UserSearchRequest request = new UserSearchRequest();
    request.setUserId("Test102");
    UserSearchResult test = _usrMaster.search(request);

    assertEquals(1, test.getDocuments().size());
    assert102(test.getDocuments().get(0));
  }
Esempio n. 3
0
  @Test
  public void test_search_stringUserId_wildcardCase() {
    UserSearchRequest request = new UserSearchRequest();
    request.setUserId("TEST1*");
    UserSearchResult test = _usrMaster.search(request);

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