LocalZipImporterPagePresenter implements LocalZipImporterPageView.ActionDelegate { @Override public void onCancelClicked() { view.closeDialog(); } @Inject  LocalZipImporterPagePresenter(LocalZipImporterPageView view,
                                         DtoFactory dtoFactory,
                                         CoreLocalizationConstant locale,
                                         @RestContext String restContext,
                                         @Named("workspaceId") String workspaceId,
                                         EventBus eventBus,
                                         VfsServiceClient vfsServiceClient,
                                         ProjectServiceClient projectServiceClient,
                                         DialogFactory dialogFactory,
                                         ImportProjectNotificationSubscriber importProjectNotificationSubscriber); void show(); @Override void projectNameChanged(); @Override void fileNameChanged(); @Override void onSubmitComplete(String result); @Override void onCancelClicked(); @Override void onImportClicked();  }
@Test public void shouldCloseDialogTest() { presenter.onCancelClicked(); verify(view).closeDialog(); }