@Test(expectedExceptions = IllegalArgumentException.class) public void shouldFailToFindRecipientWhenAccountNameIsEmpty() { recipientService.findByAccountName(""); }
@Override public Recipient findByAccountName(String accountName) { Assert.hasLength(accountName); return repository.findByAccountName(accountName); }
RecipientServiceImpl implements RecipientService { @Override public Recipient findByAccountName(String accountName) { Assert.hasLength(accountName); return repository.findByAccountName(accountName); } }
RecipientServiceImpl implements RecipientService { @Override public Recipient findByAccountName(String accountName) { Assert.hasLength(accountName); return repository.findByAccountName(accountName); }  }
RecipientServiceImpl implements RecipientService { @Override public Recipient findByAccountName(String accountName) { Assert.hasLength(accountName); return repository.findByAccountName(accountName); }  @Override Recipient findByAccountName(String accountName); @Override Recipient save(String accountName, Recipient recipient); @Override List<Recipient> findReadyToNotify(NotificationType type); @Override void markNotified(NotificationType type, Recipient recipient); }
RecipientServiceImpl implements RecipientService { @Override public Recipient findByAccountName(String accountName) { Assert.hasLength(accountName); return repository.findByAccountName(accountName); }  @Override Recipient findByAccountName(String accountName); @Override Recipient save(String accountName, Recipient recipient); @Override List<Recipient> findReadyToNotify(NotificationType type); @Override void markNotified(NotificationType type, Recipient recipient);  }