コード例 #1
0
 private void prepareServiceWithMultipleJobExecutions() throws Exception {
   jobService.listJobExecutionsForJob("job", 0, 100);
   EasyMock.expectLastCall().andReturn(Arrays.asList(jobExecution, earlierExecution));
   jobService.listJobExecutionsForJob("job", 100, 100);
   EasyMock.expectLastCall().andReturn(Arrays.asList());
   EasyMock.replay(jobService);
 }
コード例 #2
0
 private void prepareServiceWithSingleJobExecution() throws Exception {
   jobService.listJobExecutionsForJob("job", 0, 4);
   EasyMock.expectLastCall().andReturn(Arrays.asList(jobExecution));
   EasyMock.replay(jobService);
 }