Ejemplo n.º 1
0
  @Test
  public void test_search_noKeys_None_allMatch() {
    UserSearchRequest request = new UserSearchRequest();
    request.setExternalIdSearch(new ExternalIdSearch());
    request.getExternalIdSearch().setSearchType(ExternalIdSearchType.NONE);
    UserSearchResult test = _usrMaster.search(request);

    assertEquals(_totalUsers, test.getDocuments().size());
  }
Ejemplo n.º 2
0
  @Test
  public void test_search_noKeys_Any_noMatch() {
    UserSearchRequest request = new UserSearchRequest();
    request.setExternalIdSearch(new ExternalIdSearch());
    request.getExternalIdSearch().setSearchType(ExternalIdSearchType.ANY);
    UserSearchResult test = _usrMaster.search(request);

    assertEquals(0, test.getDocuments().size());
  }