BATCH-1053: Updated javadocs to explain the behavior of getStep and getState if the step/state is not found.
This commit is contained in:
@@ -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"))));
|
||||
|
||||
Reference in New Issue
Block a user