199200201202203204205206207208209
} else { String name = helper.getFormId(response); form.setLastModified(System.currentTimeMillis()); form.setSaved(true); form.setName(name); bus.fireEvent(new FormSavedEvent(form)); } } }); } catch (FormEncodingException e) { bus.fireEvent(new NotificationEvent(Level.ERROR, i18n.CouldntDecodeForm(), e));
241242243244245246247248
EasyMock.expectLastCall().once(); FormRepresentation formRep = new FormRepresentation(); EasyMock.replay(view, drag, mockForm); new LayoutPresenter(view); bus.fireEvent(new FormSavedEvent(formRep)); EasyMock.verify(view, drag, mockForm); }