Package com.opengamma.master.holiday

Examples of com.opengamma.master.holiday.HolidaySearchRequest


    assert102(test.getDocuments().get(0));
  }

  @Test
  public void test_search_name_wildcard() {
    HolidaySearchRequest request = new HolidaySearchRequest();
    request.setName("TestHoliday1*");
    HolidaySearchResult test = _holMaster.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_name_wildcardCase() {
    HolidaySearchRequest request = new HolidaySearchRequest();
    request.setName("TESTHoliday1*");
    HolidaySearchResult test = _holMaster.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_type() {
    HolidaySearchRequest request = new HolidaySearchRequest();
    request.setType(HolidayType.CURRENCY);
    HolidaySearchResult test = _holMaster.search(request);
   
    assertEquals(3, test.getDocuments().size());
    assert101(test.getDocuments().get(0));
    assert102(test.getDocuments().get(1));
View Full Code Here

  }

  //-------------------------------------------------------------------------
  @Test
  public void test_search_providerNoMatch() {
    HolidaySearchRequest request = new HolidaySearchRequest();
    request.setProviderId(ExternalId.of("A", "B"));
    HolidaySearchResult test = _holMaster.search(request);
   
    assertEquals(0, test.getDocuments().size());
  }
View Full Code Here

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

  @Test
  public void test_search_providerFound() {
    HolidaySearchRequest request = new HolidaySearchRequest();
    request.setProviderId(ExternalId.of("COPP_CLARK", "2"));
    HolidaySearchResult test = _holMaster.search(request);
   
    assertEquals(1, test.getDocuments().size());
    assert102(test.getDocuments().get(0));
  }
View Full Code Here

  }

  //-------------------------------------------------------------------------
  @Test
  public void test_search_regionEmptyBundle() {
    HolidaySearchRequest request = new HolidaySearchRequest();
    request.setRegionExternalIdSearch(new ExternalIdSearch());
    HolidaySearchResult test = _holMaster.search(request);
   
    assertEquals(0, test.getDocuments().size());
  }
View Full Code Here

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

  @Test
  public void test_search_regionNoMatch() {
    HolidaySearchRequest request = new HolidaySearchRequest();
    request.addRegionExternalId(ExternalId.of("A", "B"));
    HolidaySearchResult test = _holMaster.search(request);
   
    assertEquals(0, test.getDocuments().size());
  }
View Full Code Here

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

  @Test
  public void test_search_exchange_empty() {
    HolidaySearchRequest request = new HolidaySearchRequest();
    request.setExchangeExternalIdSearch(new ExternalIdSearch());
    HolidaySearchResult test = _holMaster.search(request);
   
    assertEquals(0, test.getDocuments().size());
  }
View Full Code Here

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

  @Test
  public void test_search_exchange_noMatch() {
    HolidaySearchRequest request = new HolidaySearchRequest();
    request.addExchangeExternalId(ExternalId.of("A", "B"));
    HolidaySearchResult test = _holMaster.search(request);
   
    assertEquals(0, test.getDocuments().size());
  }
View Full Code Here

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

  @Test
  public void test_search_currency_noMatch() {
    HolidaySearchRequest request = new HolidaySearchRequest();
    request.setCurrency(Currency.USD);
    HolidaySearchResult test = _holMaster.search(request);
   
    assertEquals(0, test.getDocuments().size());
  }
View Full Code Here

TOP

Related Classes of com.opengamma.master.holiday.HolidaySearchRequest

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.