BATCH-1396: added step scope to completion policy in chunk parser

This commit is contained in:
Dave Syer
2011-03-19 16:14:50 +00:00
parent 323cdf6f15
commit 23587e0855
6 changed files with 49 additions and 17 deletions

View File

@@ -65,6 +65,14 @@ public class ChunkElementParserTests {
assertTrue("Wrong processor type", chunkProcessor instanceof SimpleChunkProcessor);
}
@Test
public void testCommitIntervalLateBinding() throws Exception {
ConfigurableApplicationContext context = new ClassPathXmlApplicationContext(
"org/springframework/batch/core/configuration/xml/ChunkElementCommitIntervalParserTests-context.xml");
Step step = (Step) context.getBean("s1", Step.class);
assertNotNull("Step not parsed", step);
}
@Test
public void testRetryPolicyAttribute() throws Exception {
ConfigurableApplicationContext context = new ClassPathXmlApplicationContext(