我正在使用 ExecutorCompletionService 和下面的方法调用
Future<List<Student>> studentDetails = taskCompletionService.take();
Lis<Student> details =studentDetails.get()
现在正在编写 Junit 和 Mockito,我想模拟以上两个调用。我怎样才能做到这一点?
我正在使用 ExecutorCompletionService 和下面的方法调用
Future<List<Student>> studentDetails = taskCompletionService.take();
Lis<Student> details =studentDetails.get()
现在正在编写 Junit 和 Mockito,我想模拟以上两个调用。我怎样才能做到这一点?