@Test public void fetchUsers_noErros_sucess() { TestObserver<UserResponse> subscriber = TestObserver.create(); mApiEndPointHelper.fetchUsers(2).subscribe(subscriber); subscriber.onNext(new UserResponse()); subscriber.assertNoErrors(); subscriber.assertComplete(); }
@Override public Single<UserResponse> fetchUsers(int page) { return this.endPointHelper.fetchUsers(page); }
HomeRepository implements HomeContract.Repository { @Override public Single<UserResponse> fetchUsers(int page) { return this.endPointHelper.fetchUsers(page); } }
HomeRepository implements HomeContract.Repository { @Override public Single<UserResponse> fetchUsers(int page) { return this.endPointHelper.fetchUsers(page); } @Inject  HomeRepository(EndPointHelper endPointHelper); }
HomeRepository implements HomeContract.Repository { @Override public Single<UserResponse> fetchUsers(int page) { return this.endPointHelper.fetchUsers(page); } @Inject  HomeRepository(EndPointHelper endPointHelper); @Override Single<UserResponse> fetchUsers(int page); }
HomeRepository implements HomeContract.Repository { @Override public Single<UserResponse> fetchUsers(int page) { return this.endPointHelper.fetchUsers(page); } @Inject  HomeRepository(EndPointHelper endPointHelper); @Override Single<UserResponse> fetchUsers(int page);  }