RESOLVED - issue BATCH-1395: Remove or deprecate old application context creation pattern

Removed it.
This commit is contained in:
dsyer
2009-09-07 17:24:22 +00:00
parent 8143e66768
commit 4da7efee3a
5 changed files with 123 additions and 31 deletions

View File

@@ -70,4 +70,18 @@ public class ClassPathXmlJobRegistryTests {
registry.afterPropertiesSet();
assertEquals(2, registry.getJobNames().size());
}
@Test
public void testDestroy() throws Exception {
Resource[] jobPaths = new Resource[] { new ClassPathResource(
"org/springframework/batch/core/launch/support/2jobs.xml") };
registry.setJobPaths(jobPaths);
registry.afterPropertiesSet();
assertEquals(2, registry.getJobNames().size());
registry.destroy();
assertEquals(0, registry.getJobNames().size());
}
}