Package com.opengamma.master.historicaltimeseries

Examples of com.opengamma.master.historicaltimeseries.HistoricalTimeSeriesInfoSearchResult


  @Test
  public void test_search_oneKey_All_1_noMatch() {
    HistoricalTimeSeriesInfoSearchRequest request = new HistoricalTimeSeriesInfoSearchRequest();
    request.addExternalId(ExternalId.of("A", "Z"));
    request.getExternalIdSearch().setSearchType(ExternalIdSearchType.ALL);
    HistoricalTimeSeriesInfoSearchResult test = _htsMaster.search(request);
   
    assertEquals(0, test.getDocuments().size());
  }
View Full Code Here


  @Test
  public void test_search_twoKeys_All_2() {
    HistoricalTimeSeriesInfoSearchRequest request = new HistoricalTimeSeriesInfoSearchRequest();
    request.addExternalIds(ExternalId.of("TICKER", "V501"), ExternalId.of("NASDAQ", "V502"));
    request.getExternalIdSearch().setSearchType(ExternalIdSearchType.ALL);
    HistoricalTimeSeriesInfoSearchResult test = _htsMaster.search(request);
   
    assertEquals(1, test.getDocuments().size());
    assert101(test.getDocuments().get(0));
  }
View Full Code Here

  @Test
  public void test_search_twoKeys_All_2_noMatch() {
    HistoricalTimeSeriesInfoSearchRequest request = new HistoricalTimeSeriesInfoSearchRequest();
    request.addExternalIds(ExternalId.of("TICKER", "V501"), ExternalId.of("A", "D"));
    request.getExternalIdSearch().setSearchType(ExternalIdSearchType.ALL);
    HistoricalTimeSeriesInfoSearchResult test = _htsMaster.search(request);
   
    assertEquals(0, test.getDocuments().size());
  }
View Full Code Here

  @Test
  public void test_search_oneKey_None() {
    HistoricalTimeSeriesInfoSearchRequest request = new HistoricalTimeSeriesInfoSearchRequest();
    request.addExternalId(ExternalId.of("TICKER", "V501"));
    request.getExternalIdSearch().setSearchType(ExternalIdSearchType.NONE);
    HistoricalTimeSeriesInfoSearchResult test = _htsMaster.search(request);
   
    assertEquals(2, test.getDocuments().size());
    assert102(test.getDocuments().get(0));
    assert203(test.getDocuments().get(1));
  }
View Full Code Here

    HistoricalTimeSeriesInfoSearchRequest request = new HistoricalTimeSeriesInfoSearchRequest();
    request.addExternalId(ExternalId.of("TICKER", "V501"));
    request.addExternalId(ExternalId.of("TICKER", "V503"));
    request.addExternalId(ExternalId.of("TICKER", "V505"));
    request.getExternalIdSearch().setSearchType(ExternalIdSearchType.NONE);
    HistoricalTimeSeriesInfoSearchResult test = _htsMaster.search(request);
   
    assertEquals(0, test.getDocuments().size());
  }
View Full Code Here

  @Test
  public void test_search_twoKeys_Exact() {
    HistoricalTimeSeriesInfoSearchRequest request = new HistoricalTimeSeriesInfoSearchRequest();
    request.addExternalIds(ExternalId.of("TICKER", "V501"), ExternalId.of("NASDAQ", "V502"));
    request.getExternalIdSearch().setSearchType(ExternalIdSearchType.EXACT);
    HistoricalTimeSeriesInfoSearchResult test = _htsMaster.search(request);
   
    assertEquals(1, test.getDocuments().size());
    assert101(test.getDocuments().get(0));
  }
View Full Code Here

  @Test
  public void test_search_threeKeys_Exact_noMatch() {
    HistoricalTimeSeriesInfoSearchRequest request = new HistoricalTimeSeriesInfoSearchRequest();
    request.addExternalId(ExternalId.of("TICKER", "V501"));
    request.getExternalIdSearch().setSearchType(ExternalIdSearchType.EXACT);
    HistoricalTimeSeriesInfoSearchResult test = _htsMaster.search(request);
   
    assertEquals(0, test.getDocuments().size());
  }
View Full Code Here

  //-------------------------------------------------------------------------
  @Test
  public void test_search_name_noMatch() {
    HistoricalTimeSeriesInfoSearchRequest request = new HistoricalTimeSeriesInfoSearchRequest();
    request.setName("FooBar");
    HistoricalTimeSeriesInfoSearchResult test = _htsMaster.search(request);
   
    assertEquals(0, test.getDocuments().size());
  }
View Full Code Here

  @Test
  public void test_search_name() {
    HistoricalTimeSeriesInfoSearchRequest request = new HistoricalTimeSeriesInfoSearchRequest();
    request.setName("N102");
    HistoricalTimeSeriesInfoSearchResult test = _htsMaster.search(request);
   
    assertEquals(1, test.getDocuments().size());
    assert102(test.getDocuments().get(0));
  }
View Full Code Here

  @Test
  public void test_search_name_case() {
    HistoricalTimeSeriesInfoSearchRequest request = new HistoricalTimeSeriesInfoSearchRequest();
    request.setName("n102");
    HistoricalTimeSeriesInfoSearchResult test = _htsMaster.search(request);
   
    assertEquals(1, test.getDocuments().size());
    assert102(test.getDocuments().get(0));
  }
View Full Code Here

TOP

Related Classes of com.opengamma.master.historicaltimeseries.HistoricalTimeSeriesInfoSearchResult

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.