CommitterPreferencePresenter extends AbstractPreferencePagePresenter implements CommitterPreferenceView.ActionDelegate { @Override public void go(AcceptsOneWidget container) { container.setWidget(view); view.setName(name); view.setEmail(email); } @Inject  CommitterPreferencePresenter(CommitterPreferenceView view,
                                        GitLocalizationConstant constant,
                                        PreferencesManager preferencesManager); @Override boolean isDirty(); @Override void go(AcceptsOneWidget container); @Override void nameChanged(String name); @Override void emailChanged(String email); @Override void storeChanges(); @Override void revertChanges(); static final String COMMITTER_NAME; static final String COMMITTER_EMAIL; static final String DEFAULT_COMMITTER_NAME; static final String DEFAULT_COMMITTER_EMAIL; }
@Test public void widgetShouldBePrepared() throws Exception { presenter.go(container); verify(container).setWidget(view); verify(view).setEmail(anyString()); verify(view).setName(anyString()); }