523524525526527528529530531532533
Heartbeat heartbeat = new HeartbeatImpl(); environment.push(Heartbeat.class, heartbeat); heartbeat.begin(); try { resources.triggerContextEvent(EventConstants.PREPARE_FOR_SUBMIT, context, eventCallback);
3233343536373839404142
MarkupWriter writer = mockMarkupWriter(); // Really hard to test the exact timing of all this; it will have to // be "proven" by integration tests. hb.begin(); EasyMock.expectLastCall().times(3); hb.end(); EasyMock.expectLastCall().times(3);
2930313233343536373839
Heartbeat hb = mockHeartbeat(); // Really hard to test the exact timing of all this; it will have to // be "proven" by integration tests. hb.begin(); getMocksControl().times(3); hb.end(); getMocksControl().times(3);
8586878889909192939495
train_getParameter(request, elementName, "login"); replay(); heartbeat.begin(); Submit submit = new Submit(request); submit.setup(resources, support, heartbeat); submit.setDefer(false);
497498499500501502503504505506507
3031323334353637383940
Heartbeat hb = mockHeartbeat(); // Really hard to test the exact timing of all this; it will have to // be "proven" by integration tests. hb.begin(); EasyMock.expectLastCall().times(3); hb.end(); EasyMock.expectLastCall().times(3);
8687888990919293949596
train_getParameter(request, elementName, "login"); replay(); heartbeat.begin(); Submit submit = new Submit(request); submit.setup(resources, support, heartbeat, null); submit.setDefer(false);
2829303132333435363738
replay(); Heartbeat hb = new HeartbeatImpl(); hb.begin(); hb.defer(r1); hb.defer(r2); verify();
5657585960616263646566
replay(); Heartbeat hb = new HeartbeatImpl(); hb.begin(); hb.defer(r1); hb.defer(r2); hb.begin();
6162636465666768697071
hb.begin(); hb.defer(r1); hb.defer(r2); hb.begin(); hb.defer(r3); verify();