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); }
private void prepareServiceWithSingleJobExecution() throws Exception { jobService.listJobExecutionsForJob("job", 0, 4); EasyMock.expectLastCall().andReturn(Arrays.asList(jobExecution)); EasyMock.replay(jobService); }