}
@Test
public void testResume() throws FlowExecutionException {
FlowExecutor flowExecutor = createFlowExecutor("testResumeJob", "testResumeStep");
Flow flow = new Flow() {
public String getName() {
return "testResume";
}
public State getState(String stateName) {
return null;
}
public FlowExecution start(FlowExecutor executor)
throws FlowExecutionException {
throw new FlowExecutionException("Unexpected start call");
}
public FlowExecution resume(String stateName, FlowExecutor executor)
throws FlowExecutionException {
return null;
}
public Collection<State> getStates() {
return Collections.emptyList();
}
};
flow.resume("test", flowExecutor);
Operation op = assertOperationDetails(getLastEntered(), "resume", flow.getName());
assertEquals("Mismatched state value", "test", op.get("flowState", String.class));
assertOperationPath(op, flowExecutor);
}