@Test public void getAllCreditDraftsReturnsStoreObservable() { Observable<Option<List<CreditDraft>>> storeObservable = Observable.empty(); new ArrangeBuilder().withObservableFromStore(storeObservable); assertThat(repository.getAllCreditDrafts()).isEqualTo(storeObservable); }
@NonNull public Observable<Option<List<CreditDraft>>> getAllCreditDrafts() { return store.getAll(); }
CreditRepository { @NonNull public Observable<Option<List<CreditDraft>>> getAllCreditDrafts() { return store.getAll(); } }
CreditRepository { @NonNull public Observable<Option<List<CreditDraft>>> getAllCreditDrafts() { return store.getAll(); } @Inject  CreditRepository(@NonNull final ReactiveStore<String, CreditDraft> store,
                     @NonNull final CreditService creditService,
                     @NonNull final CreditDraftMapper creditDraftMapper); }
CreditRepository { @NonNull public Observable<Option<List<CreditDraft>>> getAllCreditDrafts() { return store.getAll(); } @Inject  CreditRepository(@NonNull final ReactiveStore<String, CreditDraft> store,
                     @NonNull final CreditService creditService,
                     @NonNull final CreditDraftMapper creditDraftMapper); @NonNull Observable<Option<List<CreditDraft>>> getAllCreditDrafts(); @NonNull Completable fetchCreditDrafts(); }
CreditRepository { @NonNull public Observable<Option<List<CreditDraft>>> getAllCreditDrafts() { return store.getAll(); } @Inject  CreditRepository(@NonNull final ReactiveStore<String, CreditDraft> store,
                     @NonNull final CreditService creditService,
                     @NonNull final CreditDraftMapper creditDraftMapper); @NonNull Observable<Option<List<CreditDraft>>> getAllCreditDrafts(); @NonNull Completable fetchCreditDrafts();  }