[BATCH-478] Missed a couple of commits
This commit is contained in:
@@ -70,6 +70,7 @@ public class SimpleJobLauncherTests extends TestCase {
|
||||
|
||||
repositoryControl.replay();
|
||||
|
||||
jobLauncher.afterPropertiesSet();
|
||||
jobLauncher.run(job, jobParameters);
|
||||
assertEquals(ExitStatus.FINISHED, jobExecution.getExitStatus());
|
||||
|
||||
|
||||
@@ -50,6 +50,11 @@ public class JobRepositoryFactoryBeanTests extends TestCase{
|
||||
public void testNoDatabaseType() throws Exception{
|
||||
|
||||
try{
|
||||
incrementerFactory.isSupportedIncrementerType(null);
|
||||
incrementerControl.setReturnValue(false);
|
||||
incrementerFactory.getSupportedIncrementerTypes();
|
||||
incrementerControl.setReturnValue(new String[0]);
|
||||
incrementerControl.replay();
|
||||
factory.afterPropertiesSet();
|
||||
fail();
|
||||
}
|
||||
@@ -62,6 +67,11 @@ public class JobRepositoryFactoryBeanTests extends TestCase{
|
||||
|
||||
factory.setDatabaseType("invalid type");
|
||||
try{
|
||||
incrementerFactory.isSupportedIncrementerType("invalid type");
|
||||
incrementerControl.setReturnValue(false);
|
||||
incrementerFactory.getSupportedIncrementerTypes();
|
||||
incrementerControl.setReturnValue(new String[0]);
|
||||
incrementerControl.replay();
|
||||
factory.afterPropertiesSet();
|
||||
fail();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user