@Test public void incorrectFileForUploadChoosedTest() { String incorrectFileName = "test.txt"; when(view.getProjectName()).thenReturn(PROJECT_NAME); when(view.getFileName()).thenReturn(incorrectFileName); presenter.projectNameChanged(); verify(view).setEnabledImportButton(eq(false)); verify(view, never()).showNameError(); }
@Override public void projectNameChanged() { view.setEnabledImportButton(isCompleted()); }
LocalZipImporterPagePresenter implements LocalZipImporterPageView.ActionDelegate { @Override public void projectNameChanged() { view.setEnabledImportButton(isCompleted()); } }
LocalZipImporterPagePresenter implements LocalZipImporterPageView.ActionDelegate { @Override public void projectNameChanged() { view.setEnabledImportButton(isCompleted()); } @Inject  LocalZipImporterPagePresenter(LocalZipImporterPageView view,
                                         DtoFactory dtoFactory,
                                         CoreLocalizationConstant locale,
                                         @Named("restContext") String restContext,
                                         @Named("workspaceId") String workspaceId,
                                         EventBus eventBus,
                                         VfsServiceClient vfsServiceClient,
                                         ProjectServiceClient projectServiceClient,
                                         DialogFactory dialogFactory,
                                         ImportProjectNotificationSubscriber importProjectNotificationSubscriber); }
LocalZipImporterPagePresenter implements LocalZipImporterPageView.ActionDelegate { @Override public void projectNameChanged() { view.setEnabledImportButton(isCompleted()); } @Inject  LocalZipImporterPagePresenter(LocalZipImporterPageView view,
                                         DtoFactory dtoFactory,
                                         CoreLocalizationConstant locale,
                                         @Named("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(); }
LocalZipImporterPagePresenter implements LocalZipImporterPageView.ActionDelegate { @Override public void projectNameChanged() { view.setEnabledImportButton(isCompleted()); } @Inject  LocalZipImporterPagePresenter(LocalZipImporterPageView view,
                                         DtoFactory dtoFactory,
                                         CoreLocalizationConstant locale,
                                         @Named("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();  }