UserServiceImpl implements UserService { @Transactional(readOnly = true) @Override public List<User> findAll() { return userRepository.findAll(); }  @Override void save(User user); @Override void save(User user, int[] appIds); @Override void update(User user); @Override void updatePassword(int id, String oldPassword, String newPassword); @Override void update(User user, int[] appIds); @Override void deleteById(int id); @Transactional(readOnly = true) @Override User findById(int id); @Transactional(readOnly = true) @Override User findByEmail(String email); @Transactional(readOnly = true) @Override int[] findUserAppIds(int id); @Override List<User> findOrdinaryUsers(); @Transactional(readOnly = true) @Override List<User> findAll(); @Transactional(readOnly = true) @Override User authenticate(String email, String password);  }
@Test(dependsOnMethods = "testSave") public void testFindAll() throws Exception { List<User> users = userService.findAll(); assertTrue(users.size() > 0); }