@Test public void cancelTest() { presenter.cancelCallback = mock(Command.class); presenter.cancel(); verify(view).hide(); verify(presenter.cancelCallback).execute(); }
public void cancel() { view.hide(); cancelCallback.execute(); }
CloseUnsavedProjectAssetsPopUpPresenter { public void cancel() { view.hide(); cancelCallback.execute(); } }
CloseUnsavedProjectAssetsPopUpPresenter { public void cancel() { view.hide(); cancelCallback.execute(); } @Inject  CloseUnsavedProjectAssetsPopUpPresenter(final CloseUnsavedProjectAssetsPopUpPresenter.View view,
                                                   final ManagedInstance<CloseUnsavedProjectAssetsPopUpListItemPresenter> closeUnsavedProjectAssetsPopUpListItemPresenters,
                                                   final TranslationService translationService); }
CloseUnsavedProjectAssetsPopUpPresenter { public void cancel() { view.hide(); cancelCallback.execute(); } @Inject  CloseUnsavedProjectAssetsPopUpPresenter(final CloseUnsavedProjectAssetsPopUpPresenter.View view,
                                                   final ManagedInstance<CloseUnsavedProjectAssetsPopUpListItemPresenter> closeUnsavedProjectAssetsPopUpListItemPresenters,
                                                   final TranslationService translationService); @PostConstruct void setup(); void show(final WorkspaceProject project,
                     final List<PlaceRequest> uncloseablePlaces,
                     final Command proceedCallback,
                     final Command cancelCallback); void proceed(); void cancel(); }
CloseUnsavedProjectAssetsPopUpPresenter { public void cancel() { view.hide(); cancelCallback.execute(); } @Inject  CloseUnsavedProjectAssetsPopUpPresenter(final CloseUnsavedProjectAssetsPopUpPresenter.View view,
                                                   final ManagedInstance<CloseUnsavedProjectAssetsPopUpListItemPresenter> closeUnsavedProjectAssetsPopUpListItemPresenters,
                                                   final TranslationService translationService); @PostConstruct void setup(); void show(final WorkspaceProject project,
                     final List<PlaceRequest> uncloseablePlaces,
                     final Command proceedCallback,
                     final Command cancelCallback); void proceed(); void cancel();  }