@Test public void getUsers() { assertEquals(1, testSubject.getUsers().size()); }
public List<User> getUsers() { return userRepository.findAll(); }
UserController { public List<User> getUsers() { return userRepository.findAll(); } }
UserController { public List<User> getUsers() { return userRepository.findAll(); } UserController(PasswordEncoder passwordEncoder, UserRepository userRepository); }
UserController { public List<User> getUsers() { return userRepository.findAll(); } UserController(PasswordEncoder passwordEncoder, UserRepository userRepository); @Transactional void deleteUser(String username); List<User> getUsers(); @Transactional User updateUser(String username, String password, Set<UserRole> roles); @Transactional void syncUser(User jpaUser); String getPassword(String userName); User findUser(String name); @Transactional void removeRolesForContext(String context); @Transactional void deleteAll(); }
UserController { public List<User> getUsers() { return userRepository.findAll(); } UserController(PasswordEncoder passwordEncoder, UserRepository userRepository); @Transactional void deleteUser(String username); List<User> getUsers(); @Transactional User updateUser(String username, String password, Set<UserRole> roles); @Transactional void syncUser(User jpaUser); String getPassword(String userName); User findUser(String name); @Transactional void removeRolesForContext(String context); @Transactional void deleteAll();  }