BATCH-1285: Add additional test for unreachable step in a subflow

This commit is contained in:
dhgarrette
2009-06-11 05:42:35 +00:00
parent 452d60a2be
commit 84a5f0d7aa
2 changed files with 34 additions and 0 deletions

View File

@@ -158,6 +158,18 @@ public class JobParserTests {
}
}
@Test
public void testUnreachableStepInFlow() {
try {
new ClassPathXmlApplicationContext(
"org/springframework/batch/core/configuration/xml/JobParserUnreachableStepInFlowTests-context.xml");
fail("Error expected");
}
catch (BeanDefinitionParsingException e) {
assertTrue(e.getMessage().contains("The element [s4] is unreachable"));
}
}
@Test
public void testNextOutOfScope() {
try {