@Test public void isViewingOwnProfile_asUserBeingViewed_returnsTrue() { setAuthenticatedUsername(ProfileValues.USERNAME); configureBareMockAccount(); createAndObserveInteractor(); assertTrue(interactor.isViewingOwnProfile()); }
public boolean isViewingOwnProfile() { return viewingOwnProfile; }
UserProfileInteractor implements RefreshListener { public boolean isViewingOwnProfile() { return viewingOwnProfile; } }
UserProfileInteractor implements RefreshListener { public boolean isViewingOwnProfile() { return viewingOwnProfile; } UserProfileInteractor(@NonNull final String username, @NonNull final UserService userService, @NonNull EventBus eventBus, @NonNull UserPrefs userPrefs); }
UserProfileInteractor implements RefreshListener { public boolean isViewingOwnProfile() { return viewingOwnProfile; } UserProfileInteractor(@NonNull final String username, @NonNull final UserService userService, @NonNull EventBus eventBus, @NonNull UserPrefs userPrefs); @NonNull Observable<UserProfileViewModel> observeProfile(); @NonNull Observable<UserProfileImageViewModel> observeProfileImage(); @SuppressWarnings("unused") void onEventMainThread(@NonNull AccountDataLoadedEvent event); @SuppressWarnings("unused") void onEventMainThread(@NonNull ProfilePhotoUpdatedEvent event); @NonNull String getUsername(); boolean isViewingOwnProfile(); void destroy(); @Override void onRefresh(); }
UserProfileInteractor implements RefreshListener { public boolean isViewingOwnProfile() { return viewingOwnProfile; } UserProfileInteractor(@NonNull final String username, @NonNull final UserService userService, @NonNull EventBus eventBus, @NonNull UserPrefs userPrefs); @NonNull Observable<UserProfileViewModel> observeProfile(); @NonNull Observable<UserProfileImageViewModel> observeProfileImage(); @SuppressWarnings("unused") void onEventMainThread(@NonNull AccountDataLoadedEvent event); @SuppressWarnings("unused") void onEventMainThread(@NonNull ProfilePhotoUpdatedEvent event); @NonNull String getUsername(); boolean isViewingOwnProfile(); void destroy(); @Override void onRefresh();  }