easyMock 对无返回值的测试.加入easyMock调用的方法没有返回值,使用
expect(XXXX.xx(abc));是无法编译通过的.
错误信息为:The method expect(T) in the type EasyMock is not applicable for the arguments (void);
编译不通过.
错误示例: expect(deviceAlarmService.delDeviceAlarmById(anyInt()));
修改为:
deviceAlarmService.delDeviceAlarmById(anyInt());
expectLastCall();