Package com.opengamma.engine.view.worker

Examples of com.opengamma.engine.view.worker.CompositeMarketDataSnapshot


  @BeforeMethod
  public void setUp() throws Exception {
    _delegate1 = mock(MarketDataSnapshot.class);
    _delegate2 = mock(MarketDataSnapshot.class);
    _snapshot = new CompositeMarketDataSnapshot(Lists.newArrayList(_delegate1, _delegate2), new SnapshottingViewExecutionDataProvider.ValueSpecificationProvider(2));
    stub(_delegate1.query(SPECIFICATION1)).toReturn(VALUE1);
    stub(_delegate2.query(SPECIFICATION2)).toReturn(VALUE2);
    stub(_delegate1.query(Sets.newHashSet(SPECIFICATION1))).toReturn(ImmutableMap.of(SPECIFICATION1, VALUE1));
    stub(_delegate2.query(Sets.newHashSet(SPECIFICATION2))).toReturn(ImmutableMap.of(SPECIFICATION2, VALUE2));
    stub(_delegate1.getSnapshotTime()).toReturn(null);
View Full Code Here

TOP

Related Classes of com.opengamma.engine.view.worker.CompositeMarketDataSnapshot

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.