MergePresenter implements MergeView.ActionDelegate { @Override public void onCancelClicked() { view.close(); } @Inject  MergePresenter(MergeView view,
                          EventBus eventBus,
                          EditorAgent editorAgent,
                          GitServiceClient service,
                          GitOutputPartPresenter console,
                          GitLocalizationConstant constant,
                          AppContext appContext,
                          NotificationManager notificationManager,
                          DtoUnmarshallerFactory dtoUnmarshallerFactory,
                          ProjectExplorerPresenter projectExplorer); void showDialog(); @Override void onCancelClicked(); @Override void onMergeClicked(); @Override void onReferenceSelected(@NotNull Reference reference); static final String LOCAL_BRANCHES_TITLE; static final String REMOTE_BRANCHES_TITLE; }
@Test public void testOnCancelClicked() throws Exception { presenter.onCancelClicked(); verify(view).close(); }