HistoryPresenter extends BasePresenter implements HistoryView.ActionDelegate { @Override public void go(AcceptsOneWidget container) { container.setWidget(view); } @Inject  HistoryPresenter(final HistoryView view,
                            EventBus eventBus,
                            GitResources resources,
                            GitServiceClient service,
                            final WorkspaceAgent workspaceAgent,
                            GitLocalizationConstant constant,
                            GitOutputPartPresenter console,
                            AppContext appContext,
                            NotificationManager notificationManager,
                            DtoUnmarshallerFactory dtoUnmarshallerFactory,
                            DateTimeFormatter dateTimeFormatter,
                            SelectionAgent selectionAgent); void showDialog(); @Override void onRefreshClicked(); @Override void onProjectChangesClicked(); @Override void onResourceChangesClicked(); @Override void onDiffWithIndexClicked(); @Override void onDiffWithWorkTreeClicked(); @Override void onDiffWithPrevCommitClicked(); @Override void onRevisionSelected(@NotNull Revision revision); @Override String getTitle(); @Override ImageResource getTitleImage(); @Override SVGResource getTitleSVGImage(); @Override String getTitleToolTip(); @Override void go(AcceptsOneWidget container); @Override int getSize();  }
@Test public void testGo() throws Exception { AcceptsOneWidget container = mock(AcceptsOneWidget.class); presenter.go(container); verify(container).setWidget(eq(view)); }