@Test public void testUserDetailsPresenterInitialize() { doNothing().when(mockGetUserDetailsUseCase) .execute(anyInt(), any(GetUserDetailsUseCase.Callback.class)); given(mockUserDetailsView.getContext()).willReturn(mockContext); userDetailsPresenter.initialize(mockUserDetailsView, FAKE_USER_ID); verify(mockUserDetailsView).hideRetry(); verify(mockUserDetailsView).showLoading(); verify(mockGetUserDetailsUseCase).execute(anyInt(), any(GetUserDetailsUseCase.Callback.class)); }
public void initialize(UserDetailsView viewDetailsView, int userId) { userDetailsCallback.register(this); this.viewDetailsView = viewDetailsView; this.userId = userId; this.loadUserDetails(); }
UserDetailsPresenter implements Presenter { public void initialize(UserDetailsView viewDetailsView, int userId) { userDetailsCallback.register(this); this.viewDetailsView = viewDetailsView; this.userId = userId; this.loadUserDetails(); } }
UserDetailsPresenter implements Presenter { public void initialize(UserDetailsView viewDetailsView, int userId) { userDetailsCallback.register(this); this.viewDetailsView = viewDetailsView; this.userId = userId; this.loadUserDetails(); }  }
UserDetailsPresenter implements Presenter { public void initialize(UserDetailsView viewDetailsView, int userId) { userDetailsCallback.register(this); this.viewDetailsView = viewDetailsView; this.userId = userId; this.loadUserDetails(); }  void initialize(UserDetailsView viewDetailsView, int userId); }
UserDetailsPresenter implements Presenter { public void initialize(UserDetailsView viewDetailsView, int userId) { userDetailsCallback.register(this); this.viewDetailsView = viewDetailsView; this.userId = userId; this.loadUserDetails(); }  void initialize(UserDetailsView viewDetailsView, int userId);  }