@Test public void should_return_list_of_animals() { TestObserver<ServiceResponse> observer = service.fetchResponse(DateTime.now()).test(); observer.assertNoErrors(); observer.assertValue(FakeService.RESPONSE); }
@NonNull @Override public Single<ServiceResponse> fetchResponse(@NonNull DateTime dateTime) { return Single.just(RESPONSE); }
FakeService implements Repository { @NonNull @Override public Single<ServiceResponse> fetchResponse(@NonNull DateTime dateTime) { return Single.just(RESPONSE); } }
FakeService implements Repository { @NonNull @Override public Single<ServiceResponse> fetchResponse(@NonNull DateTime dateTime) { return Single.just(RESPONSE); } @Inject  FakeService(); }
FakeService implements Repository { @NonNull @Override public Single<ServiceResponse> fetchResponse(@NonNull DateTime dateTime) { return Single.just(RESPONSE); } @Inject  FakeService(); @NonNull @Override Single<ServiceResponse> fetchResponse(@NonNull DateTime dateTime); }
FakeService implements Repository { @NonNull @Override public Single<ServiceResponse> fetchResponse(@NonNull DateTime dateTime) { return Single.just(RESPONSE); } @Inject  FakeService(); @NonNull @Override Single<ServiceResponse> fetchResponse(@NonNull DateTime dateTime); static final ServiceResponse RESPONSE; }