(improvement)(headless) Add integrate test for domain, model, view auth checking (#720)

Co-authored-by: jolunoluo
This commit is contained in:
LXW
2024-02-04 21:56:30 +08:00
committed by GitHub
parent e801c448be
commit 8a342eb32a
8 changed files with 168 additions and 8 deletions

View File

@@ -24,6 +24,10 @@ public class User {
return new User(id, name, displayName, email, isAdmin);
}
public static User get(Long id, String name) {
return new User(id, name, name, name, 0);
}
public static User getFakeUser() {
return new User(1L, "admin", "admin", "admin@email", 1);
}