Package org.springframework.nanotrader.data.service

Examples of org.springframework.nanotrader.data.service.TradingService.saveOrder()


    when(tradingService.updateHolding(any(Holding.class))).thenReturn(holding());
    when(tradingService.findAccountProfile(400)).thenReturn(accountProfile());
    when(tradingService.findAccountProfile(NOT_A_VALID_PROFILE)).thenReturn(null);
    when(tradingService.updateAccountProfile(any(Accountprofile.class), any(String.class))).thenReturn(accountProfile());
    when(tradingService.findOrder(eq(999), eq(ACCOUNT_ID))).thenReturn(order());
    when(tradingService.saveOrder(any(Order.class))).thenReturn(null);
    when(tradingService.saveAccountProfile(any(Accountprofile.class))).thenReturn(accountProfile());
    when(tradingService.updateOrder(any(Order.class))).thenReturn(null);
    when(tradingService.findOrdersByStatus(eq(ACCOUNT_ID), any(String.class), any(Integer.class), any(Integer.class))).thenReturn(orders());
    when(tradingService.findOrders(eq(ACCOUNT_ID), any(Integer.class), any(Integer.class))).thenReturn(orders());
    when(tradingService.findQuoteBySymbol(eq(SYMBOL))).thenReturn(quote());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.