ProjectProblemDialogPresenter implements ProjectProblemDialogView.ActionDelegate { @Override public void onSelectedTypeChanged(String projectType) { view.setOpenAsButtonTitle(localizedConstant.projectProblemOpenAsButtonTitle(projectType)); view.setMessage(localizedConstant.projectProblemPressingButtonsMessage(projectType)); } @Inject  ProjectProblemDialogPresenter(final @NotNull ProjectProblemDialogView view,
                                         final ProjectTypeRegistry projectTypeRegistry,
                                         final CoreLocalizationConstant localizedConstant); void showDialog(@Nullable List<SourceEstimation> sourceEstimationList, @NotNull ProjectProblemDialogCallback callback); @Override void onOpenAsIs(); @Override void onOpenAs(); @Override void onConfigure(); @Override void onEnterClicked(); @Override void onSelectedTypeChanged(String projectType);  }
@Test public void onSelectedTypeChangedTest() throws Exception { presenter.onSelectedTypeChanged(MAVEN_PROJECT_TYPE); verify(view).setOpenAsButtonTitle(anyString()); verify(localizedConstant).projectProblemPressingButtonsMessage(eq(MAVEN_PROJECT_TYPE)); verify(view).setMessage(anyString()); }