Package com.opengamma.master.user

Examples of com.opengamma.master.user.UserSearchResult


  @Test
  public void test_search_timeZone_case() {
    UserSearchRequest request = new UserSearchRequest();
    request.setTimeZone("EUROPE/PARIS");
    UserSearchResult test = _usrMaster.search(request);
   
    assertEquals(1, test.getDocuments().size());
    assert102(test.getDocuments().get(0));
  }
View Full Code Here


  @Test
  public void test_search_timeZone_wildcard() {
    UserSearchRequest request = new UserSearchRequest();
    request.setTimeZone("Europe/*");
    UserSearchResult test = _usrMaster.search(request);
   
    assertEquals(2, test.getDocuments().size());
    assert101(test.getDocuments().get(0));
    assert102(test.getDocuments().get(1));
  }
View Full Code Here

  @Test
  public void test_search_timeZone_wildcardCase() {
    UserSearchRequest request = new UserSearchRequest();
    request.setTimeZone("EUROPE/**");
    UserSearchResult test = _usrMaster.search(request);
   
    assertEquals(2, test.getDocuments().size());
    assert101(test.getDocuments().get(0));
    assert102(test.getDocuments().get(1));
  }
View Full Code Here

  //-------------------------------------------------------------------------
  @Test
  public void test_search_emailAddress_noMatch() {
    UserSearchRequest request = new UserSearchRequest();
    request.setEmailAddress("FooBar");
    UserSearchResult test = _usrMaster.search(request);
   
    assertEquals(0, test.getDocuments().size());
  }
View Full Code Here

  @Test
  public void test_search_emailAddress() {
    UserSearchRequest request = new UserSearchRequest();
    request.setEmailAddress("email102@email.com");
    UserSearchResult test = _usrMaster.search(request);
   
    assertEquals(1, test.getDocuments().size());
    assert102(test.getDocuments().get(0));
  }
View Full Code Here

  @Test
  public void test_search_emailAddress_case() {
    UserSearchRequest request = new UserSearchRequest();
    request.setEmailAddress("EMAIL102@EMAIL.COM");
    UserSearchResult test = _usrMaster.search(request);
   
    assertEquals(1, test.getDocuments().size());
    assert102(test.getDocuments().get(0));
  }
View Full Code Here

  @Test
  public void test_search_emailAddress_wildcard() {
    UserSearchRequest request = new UserSearchRequest();
    request.setEmailAddress("email1*");
    UserSearchResult test = _usrMaster.search(request);
   
    assertEquals(2, test.getDocuments().size());
    assert101(test.getDocuments().get(0));
    assert102(test.getDocuments().get(1));
  }
View Full Code Here

  @Test
  public void test_search_emailAddress_wildcardCase() {
    UserSearchRequest request = new UserSearchRequest();
    request.setEmailAddress("EMAIL1*");
    UserSearchResult test = _usrMaster.search(request);
   
    assertEquals(2, test.getDocuments().size());
    assert101(test.getDocuments().get(0));
    assert102(test.getDocuments().get(1));
  }
View Full Code Here

  //-------------------------------------------------------------------------
  @Test
  public void test_search_userIds_none() {
    UserSearchRequest request = new UserSearchRequest();
    request.setObjectIds(new ArrayList<ObjectId>());
    UserSearchResult test = _usrMaster.search(request);
   
    assertEquals(0, test.getDocuments().size());
  }
View Full Code Here

  public void test_search_userIds() {
    UserSearchRequest request = new UserSearchRequest();
    request.addObjectId(ObjectId.of("DbUsr", "101"));
    request.addObjectId(ObjectId.of("DbUsr", "201"));
    request.addObjectId(ObjectId.of("DbUsr", "9999"));
    UserSearchResult test = _usrMaster.search(request);
   
    assertEquals(2, test.getDocuments().size());
    assert101(test.getDocuments().get(0));
    assert202(test.getDocuments().get(1));
  }
View Full Code Here

TOP

Related Classes of com.opengamma.master.user.UserSearchResult

Copyright © 2018 www.massapicom. 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.