Package com.opengamma.master.region

Examples of com.opengamma.master.region.RegionSearchResult


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

  public void test_search_oneId_mic() {
    RegionSearchRequest request = new RegionSearchRequest(ID_COUNTRY);
    RegionSearchResult result = master.search(request);
    assertEquals(1, result.getDocuments().size());
    assertEquals(addedDoc, result.getFirstDocument());
  }
View Full Code Here


    assertEquals(addedDoc, result.getFirstDocument());
  }

  public void test_search_oneId_ccid() {
    RegionSearchRequest request = new RegionSearchRequest(ID_COUNTRY);
    RegionSearchResult result = master.search(request);
    assertEquals(1, result.getDocuments().size());
    assertEquals(addedDoc, result.getFirstDocument());
  }
View Full Code Here

  //-------------------------------------------------------------------------
  public void test_search_oneBundle_noMatch() {
    RegionSearchRequest request = new RegionSearchRequest(BUNDLE_OTHER);
    request.getExternalIdSearch().setSearchType(ExternalIdSearchType.ALL);
    RegionSearchResult result = master.search(request);
    assertEquals(0, result.getDocuments().size());
  }
View Full Code Here

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

  public void test_search_oneBundle_full() {
    RegionSearchRequest request = new RegionSearchRequest(BUNDLE_FULL);
    RegionSearchResult result = master.search(request);
    assertEquals(1, result.getDocuments().size());
    assertEquals(addedDoc, result.getFirstDocument());
  }
View Full Code Here

    assertEquals(addedDoc, result.getFirstDocument());
  }

  public void test_search_oneBundle_part() {
    RegionSearchRequest request = new RegionSearchRequest(BUNDLE_PART);
    RegionSearchResult result = master.search(request);
    assertEquals(1, result.getDocuments().size());
    assertEquals(addedDoc, result.getFirstDocument());
  }
View Full Code Here

  //-------------------------------------------------------------------------
  public void test_search_twoBundles_noMatch() {
    RegionSearchRequest request = new RegionSearchRequest();
    request.addExternalId(ID_OTHER1);
    request.addExternalId(ID_OTHER2);
    RegionSearchResult result = master.search(request);
    assertEquals(0, result.getDocuments().size());
  }
View Full Code Here

  public void test_search_twoBundles_oneMatch() {
    RegionSearchRequest request = new RegionSearchRequest();
    request.addExternalId(ID_COUNTRY);
    request.addExternalId(ID_OTHER1);
    RegionSearchResult result = master.search(request);
    assertEquals(1, result.getDocuments().size());
    assertEquals(addedDoc, result.getFirstDocument());
  }
View Full Code Here

  public void test_search_twoBundles_bothMatch() {
    RegionSearchRequest request = new RegionSearchRequest();
    request.addExternalId(ID_COUNTRY);
    request.addExternalId(ID_CURENCY);
    RegionSearchResult result = master.search(request);
    assertEquals(1, result.getDocuments().size());
    assertEquals(addedDoc, result.getFirstDocument());
  }
View Full Code Here

  //-------------------------------------------------------------------------
  public void test_search_name_noMatch() {
    RegionSearchRequest request = new RegionSearchRequest();
    request.setName("No match");
    RegionSearchResult result = master.search(request);
    assertEquals(0, result.getDocuments().size());
  }
View Full Code Here

  }

  public void test_search_name_match() {
    RegionSearchRequest request = new RegionSearchRequest();
    request.setName(NAME);
    RegionSearchResult result = master.search(request);
    assertEquals(1, result.getDocuments().size());
    assertEquals(addedDoc, result.getFirstDocument());
  }
View Full Code Here

TOP

Related Classes of com.opengamma.master.region.RegionSearchResult

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.