[BATCH-478] Missed a couple of commits

This commit is contained in:
nebhale
2008-03-25 11:38:38 +00:00
parent 4f3bf4ffaf
commit e826353866
2 changed files with 11 additions and 0 deletions

View File

@@ -70,6 +70,7 @@ public class SimpleJobLauncherTests extends TestCase {
repositoryControl.replay();
jobLauncher.afterPropertiesSet();
jobLauncher.run(job, jobParameters);
assertEquals(ExitStatus.FINISHED, jobExecution.getExitStatus());

View File

@@ -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();
}