@Test public void onEditProfile_navigatesToProfileEditor() { presenter.onEditProfile(); verify(view).navigateToProfileEditor(PROFILE_USERNAME); }
public void onEditProfile() { assert getView() != null; getView().navigateToProfileEditor(userProfileInteractor.getUsername()); }
UserProfilePresenter extends ViewHoldingPresenter<UserProfilePresenter.ViewInterface> implements RefreshListener { public void onEditProfile() { assert getView() != null; getView().navigateToProfileEditor(userProfileInteractor.getUsername()); } }
UserProfilePresenter extends ViewHoldingPresenter<UserProfilePresenter.ViewInterface> implements RefreshListener { public void onEditProfile() { assert getView() != null; getView().navigateToProfileEditor(userProfileInteractor.getUsername()); } UserProfilePresenter(@NonNull AnalyticsRegistry analyticsRegistry, @NonNull UserProfileInteractor userProfileInteractor, @NonNull UserProfileTabsInteractor userProfileTabsInteractor); }
UserProfilePresenter extends ViewHoldingPresenter<UserProfilePresenter.ViewInterface> implements RefreshListener { public void onEditProfile() { assert getView() != null; getView().navigateToProfileEditor(userProfileInteractor.getUsername()); } UserProfilePresenter(@NonNull AnalyticsRegistry analyticsRegistry, @NonNull UserProfileInteractor userProfileInteractor, @NonNull UserProfileTabsInteractor userProfileTabsInteractor); UserProfileBioInteractor getBioInteractor(); @Override void attachView(@NonNull final ViewInterface view); @Override void destroy(); void onEditProfile(); @Override void onRefresh(); }
UserProfilePresenter extends ViewHoldingPresenter<UserProfilePresenter.ViewInterface> implements RefreshListener { public void onEditProfile() { assert getView() != null; getView().navigateToProfileEditor(userProfileInteractor.getUsername()); } UserProfilePresenter(@NonNull AnalyticsRegistry analyticsRegistry, @NonNull UserProfileInteractor userProfileInteractor, @NonNull UserProfileTabsInteractor userProfileTabsInteractor); UserProfileBioInteractor getBioInteractor(); @Override void attachView(@NonNull final ViewInterface view); @Override void destroy(); void onEditProfile(); @Override void onRefresh();  }