@Test public void createNothingFindAllClients() { final Iterable<Client> noClients = bankService.findAllClients(); _assertEmpty(noClients); }
public List<Client> findAllClients() { return clientRepository.findAll(); }
BankService { public List<Client> findAllClients() { return clientRepository.findAll(); } }
BankService { public List<Client> findAllClients() { return clientRepository.findAll(); } @Autowired  BankService(final ClientRepository clientRepository, final AccountAccessRepository accountAccessRepository); }
BankService { public List<Client> findAllClients() { return clientRepository.findAll(); } @Autowired  BankService(final ClientRepository clientRepository, final AccountAccessRepository accountAccessRepository); Client createClient(final String username, final LocalDate birthDate); void deleteClient(final Client client); Client findClient(final String username); List<Client> findAllClients(); List<Client> findYoungClients(final LocalDate fromBirth); List<Client> findRichClients(final Amount minBalance); }
BankService { public List<Client> findAllClients() { return clientRepository.findAll(); } @Autowired  BankService(final ClientRepository clientRepository, final AccountAccessRepository accountAccessRepository); Client createClient(final String username, final LocalDate birthDate); void deleteClient(final Client client); Client findClient(final String username); List<Client> findAllClients(); List<Client> findYoungClients(final LocalDate fromBirth); List<Client> findRichClients(final Amount minBalance);  }