Package com.opengamma.core.position

Examples of com.opengamma.core.position.Counterparty


  public void getCounterparty() {
    final Trade trade = Mockito.mock(Trade.class);
    final ResolutionLogger logger = Mockito.mock(ResolutionLogger.class);
    final Trade logged = new LoggedResolutionTrade(trade, logger);
    final Counterparty result = Mockito.mock(Counterparty.class);
    Mockito.when(trade.getCounterparty()).thenReturn(result);
    assertSame(logged.getCounterparty(), result);
    Mockito.verifyZeroInteractions(logger);
  }
View Full Code Here

TOP

Related Classes of com.opengamma.core.position.Counterparty

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.