@Test void testCheckUserExistsUnknownUserException() { assertThrows(UnknownUserException.class, () -> userRoleTools.checkUserExists("user")); }
public void checkUserExists(String user) { if (userService.getUser(user) == null) { throw new UnknownUserException(user); } }
UserRoleTools { public void checkUserExists(String user) { if (userService.getUser(user) == null) { throw new UnknownUserException(user); } } }
UserRoleTools { public void checkUserExists(String user) { if (userService.getUser(user) == null) { throw new UnknownUserException(user); } } UserRoleTools(
      UserService userService,
      DataService dataService,
      UserPermissionEvaluator userPermissionEvaluator); }
UserRoleTools { public void checkUserExists(String user) { if (userService.getUser(user) == null) { throw new UnknownUserException(user); } } UserRoleTools(
      UserService userService,
      DataService dataService,
      UserPermissionEvaluator userPermissionEvaluator); void checkRoleExists(String role); void checkUserExists(String user); List<Sid> getSids(List<String> users, List<String> roles); static Optional<String> getUsername(Sid sid); static Optional<String> getRolename(Sid sid); static String getName(Sid sid); List<Sid> getRolesForSid(Sid sid); }
UserRoleTools { public void checkUserExists(String user) { if (userService.getUser(user) == null) { throw new UnknownUserException(user); } } UserRoleTools(
      UserService userService,
      DataService dataService,
      UserPermissionEvaluator userPermissionEvaluator); void checkRoleExists(String role); void checkUserExists(String user); List<Sid> getSids(List<String> users, List<String> roles); static Optional<String> getUsername(Sid sid); static Optional<String> getRolename(Sid sid); static String getName(Sid sid); List<Sid> getRolesForSid(Sid sid); static final String ANONYMOUS; }