@Test public void onRememberCheckWouldSaveItToAccountModule() { initPresenter(); presenter.onRememberCheck(true); verify(accountModule).setRememberUser(true); presenter.onRememberCheck(false); verify(accountModule).setRememberUser(false); }
public void onRememberCheck(boolean checked) { logger.debug("onRememberCheck() called with: checked = [{}]", checked); rememberUser = checked; accountModule.setRememberUser(checked); }
LoginPresenter extends AbstractPresenter<ILoginView> { public void onRememberCheck(boolean checked) { logger.debug("onRememberCheck() called with: checked = [{}]", checked); rememberUser = checked; accountModule.setRememberUser(checked); } }
LoginPresenter extends AbstractPresenter<ILoginView> { public void onRememberCheck(boolean checked) { logger.debug("onRememberCheck() called with: checked = [{}]", checked); rememberUser = checked; accountModule.setRememberUser(checked); } @Inject  LoginPresenter(AccountModule accountModule, LoginModule loginModule,
                          @Named(VIEW_EXECUTOR) Executor executor); }
LoginPresenter extends AbstractPresenter<ILoginView> { public void onRememberCheck(boolean checked) { logger.debug("onRememberCheck() called with: checked = [{}]", checked); rememberUser = checked; accountModule.setRememberUser(checked); } @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 onRememberCheck(boolean checked) { logger.debug("onRememberCheck() called with: checked = [{}]", checked); rememberUser = checked; accountModule.setRememberUser(checked); } @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);  }