@Test public void getAllTransactions_shouldCallArchComponentProviderWithPredicateAll() { transactionDao.getAllTransactions(); verify(transactionArchComponentProvider).getDataSourceFactory(eq(transactionDataStore), eq(Predicate.ALLOW_ALL)); }
@Override public DataSource.Factory<Integer, HttpTransaction> getAllTransactions() { return transactionArchComponentProvider.getDataSourceFactory(transactionDataStore, Predicate.ALLOW_ALL); }
IMDBTransactionDao implements TransactionDao { @Override public DataSource.Factory<Integer, HttpTransaction> getAllTransactions() { return transactionArchComponentProvider.getDataSourceFactory(transactionDataStore, Predicate.ALLOW_ALL); } }
IMDBTransactionDao implements TransactionDao { @Override public DataSource.Factory<Integer, HttpTransaction> getAllTransactions() { return transactionArchComponentProvider.getDataSourceFactory(transactionDataStore, Predicate.ALLOW_ALL); } IMDBTransactionDao(TransactionDataStore transactionDataStore, TransactionArchComponentProvider transactionArchComponentProvider, TransactionPredicateProvider transactionPredicateProvider); }
IMDBTransactionDao implements TransactionDao { @Override public DataSource.Factory<Integer, HttpTransaction> getAllTransactions() { return transactionArchComponentProvider.getDataSourceFactory(transactionDataStore, Predicate.ALLOW_ALL); } 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 DataSource.Factory<Integer, HttpTransaction> getAllTransactions() { return transactionArchComponentProvider.getDataSourceFactory(transactionDataStore, Predicate.ALLOW_ALL); } 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);  }