@Test(expectedExceptions = IllegalArgumentException.class) public void shouldFailToFindDataPointWhenAccountNameIsEmpty() { statisticsService.findByAccountName(""); }
@Override public List<DataPoint> findByAccountName(String accountName) { Assert.hasLength(accountName); return repository.findByIdAccount(accountName); }
StatisticsServiceImpl implements StatisticsService { @Override public List<DataPoint> findByAccountName(String accountName) { Assert.hasLength(accountName); return repository.findByIdAccount(accountName); } }
StatisticsServiceImpl implements StatisticsService { @Override public List<DataPoint> findByAccountName(String accountName) { Assert.hasLength(accountName); return repository.findByIdAccount(accountName); }  }
StatisticsServiceImpl implements StatisticsService { @Override public List<DataPoint> findByAccountName(String accountName) { Assert.hasLength(accountName); return repository.findByIdAccount(accountName); }  @Override List<DataPoint> findByAccountName(String accountName); @Override DataPoint save(String accountName, Account account); }
StatisticsServiceImpl implements StatisticsService { @Override public List<DataPoint> findByAccountName(String accountName) { Assert.hasLength(accountName); return repository.findByIdAccount(accountName); }  @Override List<DataPoint> findByAccountName(String accountName); @Override DataPoint save(String accountName, Account account);  }