@Test public void passwordErrorClearedOnNewPassword() { initPresenter(); reset(view); presenter.onPasswordChanged("value"); verify(view).setPasswordErrorVisible(false); }
public void onPasswordChanged(@NonNull String newPassword) { logger.debug("onPasswordChanged() called with: newPassword = [{}]", newPassword); if (TextUtils.notEquals(password, newPassword)) { password = newPassword; hasPasswordError = false; getView().setPasswordErrorVisible(hasPasswordError); updateLoginButton(); } }
LoginPresenter extends AbstractPresenter<ILoginView> { public void onPasswordChanged(@NonNull String newPassword) { logger.debug("onPasswordChanged() called with: newPassword = [{}]", newPassword); if (TextUtils.notEquals(password, newPassword)) { password = newPassword; hasPasswordError = false; getView().setPasswordErrorVisible(hasPasswordError); updateLoginButton(); } } }
LoginPresenter extends AbstractPresenter<ILoginView> { public void onPasswordChanged(@NonNull String newPassword) { logger.debug("onPasswordChanged() called with: newPassword = [{}]", newPassword); if (TextUtils.notEquals(password, newPassword)) { password = newPassword; hasPasswordError = false; getView().setPasswordErrorVisible(hasPasswordError); updateLoginButton(); } } @Inject  LoginPresenter(AccountModule accountModule, LoginModule loginModule,
                          @Named(VIEW_EXECUTOR) Executor executor); }
LoginPresenter extends AbstractPresenter<ILoginView> { public void onPasswordChanged(@NonNull String newPassword) { logger.debug("onPasswordChanged() called with: newPassword = [{}]", newPassword); if (TextUtils.notEquals(password, newPassword)) { password = newPassword; hasPasswordError = false; getView().setPasswordErrorVisible(hasPasswordError); updateLoginButton(); } } @Inject  LoginPresenter(AccountModule accountModule, LoginModule loginModule,
                          @Named(VIEW_EXECUTOR) Executor executor); @Override void onCreate(); @Override void onBind(ILoginView view); @Override void onDestroy(); void onLoginChanged(@NonNull String newLogin); void onPasswordChanged(@NonNull String newPassword); void onLoginClick(); void onRememberCheck(boolean checked); }
LoginPresenter extends AbstractPresenter<ILoginView> { public void onPasswordChanged(@NonNull String newPassword) { logger.debug("onPasswordChanged() called with: newPassword = [{}]", newPassword); if (TextUtils.notEquals(password, newPassword)) { password = newPassword; hasPasswordError = false; getView().setPasswordErrorVisible(hasPasswordError); updateLoginButton(); } } @Inject  LoginPresenter(AccountModule accountModule, LoginModule loginModule,
                          @Named(VIEW_EXECUTOR) Executor executor); @Override void onCreate(); @Override void onBind(ILoginView view); @Override void onDestroy(); void onLoginChanged(@NonNull String newLogin); void onPasswordChanged(@NonNull String newPassword); void onLoginClick(); void onRememberCheck(boolean checked);  }