@Test public void getTransactionsWithId_shouldCallArchComponentProviderWithRequestedTransactionId() { transactionDao.getTransactionsWithId(10L); verify(transactionArchComponentProvider).getLiveData(eq(transactionDataStore), eq(10L)); }
@Override public LiveData<HttpTransaction> getTransactionsWithId(long id) { return transactionArchComponentProvider.getLiveData(transactionDataStore, id); }
IMDBTransactionDao implements TransactionDao { @Override public LiveData<HttpTransaction> getTransactionsWithId(long id) { return transactionArchComponentProvider.getLiveData(transactionDataStore, id); } }
IMDBTransactionDao implements TransactionDao { @Override public LiveData<HttpTransaction> getTransactionsWithId(long id) { return transactionArchComponentProvider.getLiveData(transactionDataStore, id); } IMDBTransactionDao(TransactionDataStore transactionDataStore, TransactionArchComponentProvider transactionArchComponentProvider, TransactionPredicateProvider transactionPredicateProvider); }
IMDBTransactionDao implements TransactionDao { @Override public LiveData<HttpTransaction> getTransactionsWithId(long id) { return transactionArchComponentProvider.getLiveData(transactionDataStore, id); } IMDBTransactionDao(TransactionDataStore transactionDataStore, TransactionArchComponentProvider transactionArchComponentProvider, TransactionPredicateProvider transactionPredicateProvider); @Override long insertTransaction(HttpTransaction httpTransaction); @Override int updateTransaction(HttpTransaction httpTransaction); @Override int deleteTransactions(HttpTransaction... httpTransactions); @Override int deleteTransactionsBefore(Date beforeDate); @Override int clearAll(); @Override DataSource.Factory<Integer, HttpTransaction> getAllTransactions(); @Override LiveData<HttpTransaction> getTransactionsWithId(long id); @Override DataSource.Factory<Integer, HttpTransaction> getAllTransactionsWith(String key, SearchType searchType); }
IMDBTransactionDao implements TransactionDao { @Override public LiveData<HttpTransaction> getTransactionsWithId(long id) { return transactionArchComponentProvider.getLiveData(transactionDataStore, id); } IMDBTransactionDao(TransactionDataStore transactionDataStore, TransactionArchComponentProvider transactionArchComponentProvider, TransactionPredicateProvider transactionPredicateProvider); @Override long insertTransaction(HttpTransaction httpTransaction); @Override int updateTransaction(HttpTransaction httpTransaction); @Override int deleteTransactions(HttpTransaction... httpTransactions); @Override int deleteTransactionsBefore(Date beforeDate); @Override int clearAll(); @Override DataSource.Factory<Integer, HttpTransaction> getAllTransactions(); @Override LiveData<HttpTransaction> getTransactionsWithId(long id); @Override DataSource.Factory<Integer, HttpTransaction> getAllTransactionsWith(String key, SearchType searchType);  }