BATCH-1053: Updated javadocs to explain the behavior of getStep and getState if the step/state is not found.

This commit is contained in:
dhgarrette
2009-02-03 16:22:08 +00:00
parent b4fcc457c5
commit b09e1ece01
6 changed files with 17 additions and 16 deletions

View File

@@ -215,7 +215,7 @@ public class SimpleFlowTests {
assertEquals("step1", state.getName());
}
@Test(expected = IllegalArgumentException.class)
@Test(expected = IllegalStateException.class)
public void testGetStateDoesNotExist() throws Exception {
flow.setStateTransitions(Collections.singletonList(StateTransition.createEndStateTransition(new StubState(
"step1"))));