|
|
@@ -12,6 +12,7 @@ import org.springframework.security.core.userdetails.User;
|
|
|
import org.springframework.security.core.userdetails.UserDetails;
|
|
|
|
|
|
import java.time.Instant;
|
|
|
+import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
import java.util.UUID;
|
|
|
|
|
|
@@ -205,14 +206,14 @@ public class TestDataFactory {
|
|
|
* Creates a UserResponse
|
|
|
*/
|
|
|
public static UserResponse createUserResponse() {
|
|
|
- return new UserResponse(DEFAULT_USER_ID, DEFAULT_USERNAME, List.of("USER"));
|
|
|
+ return new UserResponse(DEFAULT_USER_ID, DEFAULT_USERNAME, DEFAULT_EMAIL, List.of("USER"), true);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Creates a UserResponse with specified parameters
|
|
|
*/
|
|
|
public static UserResponse createUserResponse(String id, String username, List<String> roles) {
|
|
|
- return new UserResponse(id, username, roles);
|
|
|
+ return new UserResponse(id, username, null, roles, true);
|
|
|
}
|
|
|
|
|
|
/**
|