verifyControls();
}
public void testTriggerWithDeferredListenerAndMultipleParameters()
{
IActionListener listener = newListener();
MockForm form = new MockForm();
MockControl cycleControl = newControl(IRequestCycle.class);
IRequestCycle cycle = (IRequestCycle) cycleControl.getMock();
Collection parameters = new LinkedList();
parameters.add("p1");
parameters.add("p2");
Creator creator = new Creator();
Submit submit = (Submit) creator.newInstance(Submit.class, new Object[]
{ "listener", listener, "defer", Boolean.TRUE, "parameters", parameters, "listenerInvoker",
new ListenerInvokerTerminator() });
cycle.setListenerParameters(new Object[]
{ "p1", "p2" });
cycleControl.setMatcher(MockControl.ARRAY_MATCHER);
replayControls();
submit.handleClick(cycle, form);
verifyControls();
listener.actionTriggered(submit, cycle);
replayControls();
form.runDeferred();