Package com.opengamma.master.security

Examples of com.opengamma.master.security.SecuritySearchRequest


    assert102(test.getDocuments().get(1));
  }
   
  @Test
  public void test_search_identifier_case() {
    SecuritySearchRequest request = new SecuritySearchRequest();
    request.setExternalIdValue("hi");
    SecuritySearchResult test = _secMaster.search(request);
   
    assertEquals(1, test.getDocuments().size());
    assert102(test.getDocuments().get(0));
  }
View Full Code Here


    assert102(test.getDocuments().get(0));
  }
 
  @Test
  public void test_search_identifier_noMatch() {
    SecuritySearchRequest request = new SecuritySearchRequest();
    request.setExternalIdValue("FooBar");
    SecuritySearchResult test = _secMaster.search(request);
   
    assertEquals(0, test.getDocuments().size());
  }
View Full Code Here

    assertEquals(0, test.getDocuments().size());
  }
 
  @Test
  public void test_search_identifier_wildcard() {
    SecuritySearchRequest request = new SecuritySearchRequest();
    request.setExternalIdValue("H*");
    SecuritySearchResult test = _secMaster.search(request);
   
    assertEquals(1, test.getDocuments().size());
    assert102(test.getDocuments().get(0));
  }
View Full Code Here

    assert102(test.getDocuments().get(0));
  }
 
  @Test
  public void test_search_identifier_wildcardCase() {
    SecuritySearchRequest request = new SecuritySearchRequest();
    request.setExternalIdValue("h*");
    SecuritySearchResult test = _secMaster.search(request);
   
    assertEquals(1, test.getDocuments().size());
    assert102(test.getDocuments().get(0));
  }
View Full Code Here

  //-------------------------------------------------------------------------

  @Test
  public void test_search_scheme() {
    SecuritySearchRequest request = new SecuritySearchRequest();
    request.setExternalIdScheme("A");
    SecuritySearchResult test = _secMaster.search(request);
   
    assertEquals(2, test.getDocuments().size());
    assert101(test.getDocuments().get(0));
    assert102(test.getDocuments().get(1));
View Full Code Here

    assert102(test.getDocuments().get(1));
  }
   
  @Test
  public void test_search_scheme_case() {
    SecuritySearchRequest request = new SecuritySearchRequest();
    request.setExternalIdScheme("gh");
    SecuritySearchResult test = _secMaster.search(request);
   
    assertEquals(1, test.getDocuments().size());
    assert102(test.getDocuments().get(0));
  }
View Full Code Here

    assert102(test.getDocuments().get(0));
  }
 
  @Test
  public void test_search_scheme_noMatch() {
    SecuritySearchRequest request = new SecuritySearchRequest();
    request.setExternalIdScheme("FooBar");
    SecuritySearchResult test = _secMaster.search(request);
   
    assertEquals(0, test.getDocuments().size());
  }
View Full Code Here

    assertEquals(0, test.getDocuments().size());
  }
 
  @Test
  public void test_search_scheme_wildcard() {
    SecuritySearchRequest request = new SecuritySearchRequest();
    request.setExternalIdScheme("G*");
    SecuritySearchResult test = _secMaster.search(request);
   
    assertEquals(1, test.getDocuments().size());
    assert102(test.getDocuments().get(0));
  }
View Full Code Here

    assert102(test.getDocuments().get(0));
  }
 
  @Test
  public void test_search_scheme_wildcardCase() {
    SecuritySearchRequest request = new SecuritySearchRequest();
    request.setExternalIdScheme("g*");
    SecuritySearchResult test = _secMaster.search(request);
   
    assertEquals(1, test.getDocuments().size());
    assert102(test.getDocuments().get(0));
  }
View Full Code Here

  //-------------------------------------------------------------------------

  @Test
  public void test_search_name_noMatch() {
    SecuritySearchRequest request = new SecuritySearchRequest();
    request.setName("FooBar");
    SecuritySearchResult test = _secMaster.search(request);
   
    assertEquals(0, test.getDocuments().size());
  }
View Full Code Here

TOP

Related Classes of com.opengamma.master.security.SecuritySearchRequest

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.