RESOLVED - issue BATCH-1421: Add method to get all job names to JobExplorer
This commit is contained in:
@@ -174,4 +174,14 @@ public class SimpleJobExplorerTests extends TestCase {
|
||||
verify(jobExecutionDao, jobInstanceDao, stepExecutionDao);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetJobNames() throws Exception {
|
||||
jobInstanceDao.getJobNames();
|
||||
EasyMock.expectLastCall().andReturn(
|
||||
Collections.singletonList("foo"));
|
||||
replay(jobExecutionDao, jobInstanceDao, stepExecutionDao);
|
||||
jobExplorer.getJobNames();
|
||||
verify(jobExecutionDao, jobInstanceDao, stepExecutionDao);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -298,6 +298,10 @@ public class CommandLineJobRunnerTests {
|
||||
public StepExecution getStepExecution(Long jobExecutionId, Long stepExecutionId) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
public List<String> getJobNames() {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user