assertEquals(1, ((TestAction) state.getActionList().get(0)).getExecutionCount());
}
}
public void testExecuteActionChain() {
state.getActionList().add(new TestAction("not mapped result"));
state.getActionList().add(new TestAction(null));
state.getActionList().add(new TestAction(""));
state.getActionList().add(new TestAction("success"));
state.getTransitionSet().add(new Transition(on("success"), to("finish")));
state.enter(context);
Action[] actions = state.getActionList().toArray();
for (Action action2 : actions) {
TestAction action = (TestAction) action2;
assertEquals(1, action.getExecutionCount());
}
}