Package com.opengamma.core.exchange

Examples of com.opengamma.core.exchange.Exchange


   
    ExchangeSearchResult result = new ExchangeSearchResult();
   
    when(mock.search(request)).thenReturn(result);
    MasterExchangeSource test = new MasterExchangeSource(mock, VC);
    Exchange testResult = test.getSingle(ID);
    verify(mock, times(1)).search(request);
   
    assertEquals(null, testResult);
  }
View Full Code Here


    ExchangeSearchResult result = new ExchangeSearchResult();
    result.getDocuments().add(new ExchangeDocument(example()));
   
    when(mock.search(request)).thenReturn(result);
    MasterExchangeSource test = new MasterExchangeSource(mock, VC);
    Exchange testResult = test.getSingle(BUNDLE);
    verify(mock, times(1)).search(request);
   
    assertEquals(example(), testResult);
  }
View Full Code Here

TOP

Related Classes of com.opengamma.core.exchange.Exchange

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.