Last active
June 30, 2024 13:42
-
-
Save trikitrok/2a2340caf8fb19aa7207416231930318 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package bank.tests.integration; | |
| // some ommited imports... | |
| public class InMemoryTransactionsRepositoryTest extends TransactionsRepositoryRoleTest { | |
| @Override | |
| protected TransactionsRepository createRepository() { | |
| return new InMemoryTransactionsRepository(); | |
| } | |
| @Override | |
| protected void prepareData(List<Transaction> initialTransactions) { | |
| for (Transaction transaction : initialTransactions) { | |
| repository.save(transaction); | |
| } | |
| } | |
| @Override | |
| protected List<Transaction> readAllTransactions() { | |
| return repository.retrieveAll(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment