232425262728293031
return user; } public static User getRandomUserWithAdminRole() { User user = AccountData.getRandomUser(); Role adminRole = AccountData.getAdminRole(); user.getRoleList().add(adminRole); return user; }
2930313233343536373839
user.getRoleList().add(adminRole); return user; } public static Role getAdminRole() { Role role = new Role(); role.setId(1L); role.setName("Admin"); return role; }