阅读背景:

确保在mockito中不调用非模拟方法

来源:互联网 

In the following example:

在以下示例中:

   Execution execution = mock(Execution.class);
   when(execution.getLastQty()).thenReturn(1000.0);
   when(execution.getLastPrice()).thenReturn(75.0);

   order.onFillReceived(execution);

   assertEquals(0, order.getLeavesQty(), 0);
   Execu



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: