Package com.opengamma.master.historicaltimeseries

Examples of com.opengamma.master.historicaltimeseries.HistoricalTimeSeriesInfoHistoryRequest


  }

  @Test
  public void test_history_versionsFrom_firstToSecond() {
    ObjectId oid = ObjectId.of("DbHts", "201");
    HistoricalTimeSeriesInfoHistoryRequest request = new HistoricalTimeSeriesInfoHistoryRequest(oid);
    request.setVersionsFromInstant(_version1Instant.plusSeconds(5));
    HistoricalTimeSeriesInfoHistoryResult test = _htsMaster.history(request);
   
    assertEquals(3, test.getPaging().getTotalItems());
   
    assertEquals(3, test.getDocuments().size());
View Full Code Here


  }

  @Test
  public void test_history_versionsFrom_postSecond() {
    ObjectId oid = ObjectId.of("DbHts", "201");
    HistoricalTimeSeriesInfoHistoryRequest request = new HistoricalTimeSeriesInfoHistoryRequest(oid);
    request.setVersionsFromInstant(_version2Instant.plusSeconds(5));
    HistoricalTimeSeriesInfoHistoryResult test = _htsMaster.history(request);
   
    assertEquals(2, test.getPaging().getTotalItems());
   
    assertEquals(2, test.getDocuments().size());
View Full Code Here

  //-------------------------------------------------------------------------
  @Test
  public void test_history_versionsTo_preFirst() {
    ObjectId oid = ObjectId.of("DbHts", "201");
    HistoricalTimeSeriesInfoHistoryRequest request = new HistoricalTimeSeriesInfoHistoryRequest(oid);
    request.setVersionsToInstant(_version1Instant.minusSeconds(5));
    HistoricalTimeSeriesInfoHistoryResult test = _htsMaster.history(request);
   
    assertEquals(0, test.getPaging().getTotalItems());
   
    assertEquals(0, test.getDocuments().size());
View Full Code Here

  }

  @Test
  public void test_history_versionsTo_firstToSecond() {
    ObjectId oid = ObjectId.of("DbHts", "201");
    HistoricalTimeSeriesInfoHistoryRequest request = new HistoricalTimeSeriesInfoHistoryRequest(oid);
    request.setVersionsToInstant(_version1Instant.plusSeconds(5));
    HistoricalTimeSeriesInfoHistoryResult test = _htsMaster.history(request);
   
    assertEquals(1, test.getPaging().getTotalItems());
   
    assertEquals(1, test.getDocuments().size());
View Full Code Here

  }

  @Test
  public void test_history_versionsTo_postSecond() {
    ObjectId oid = ObjectId.of("DbHts", "201");
    HistoricalTimeSeriesInfoHistoryRequest request = new HistoricalTimeSeriesInfoHistoryRequest(oid);
    request.setVersionsToInstant(_version2Instant.plusSeconds(5));
    HistoricalTimeSeriesInfoHistoryResult test = _htsMaster.history(request);
   
    assertEquals(3, test.getPaging().getTotalItems());
   
    assertEquals(3, test.getDocuments().size());
View Full Code Here

TOP

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

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.