From 59a468a42171f9ecc49d1202c6b07d2e87a24264 Mon Sep 17 00:00:00 2001 From: Arne Dierick Date: Mon, 4 Mar 2024 17:07:10 +0100 Subject: [PATCH] Testen zouden nu moeten werken --- .../com/ugent/pidgeon/controllers/StaticAuthControllerTest.java | 2 +- backend/app/src/test/java/com/ugent/pidgeon/model/AuthTest.java | 2 +- backend/app/src/test/java/com/ugent/pidgeon/model/UserTest.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/app/src/test/java/com/ugent/pidgeon/controllers/StaticAuthControllerTest.java b/backend/app/src/test/java/com/ugent/pidgeon/controllers/StaticAuthControllerTest.java index 77145727..f2447081 100644 --- a/backend/app/src/test/java/com/ugent/pidgeon/controllers/StaticAuthControllerTest.java +++ b/backend/app/src/test/java/com/ugent/pidgeon/controllers/StaticAuthControllerTest.java @@ -18,7 +18,7 @@ public class StaticAuthControllerTest { private final List groepLijst = List.of("Groep 1"); - private final User user = new User("Tester De Test", + private final User user = new User("Tester De Test", "Tester", "De Test", "test.testing@gtest.test", groepLijst, "123456"); private final List authLijst = List.of(new SimpleGrantedAuthority("READ_AUTHORITY")); private final Auth auth = new Auth(user, authLijst); diff --git a/backend/app/src/test/java/com/ugent/pidgeon/model/AuthTest.java b/backend/app/src/test/java/com/ugent/pidgeon/model/AuthTest.java index cac064ae..a5924771 100644 --- a/backend/app/src/test/java/com/ugent/pidgeon/model/AuthTest.java +++ b/backend/app/src/test/java/com/ugent/pidgeon/model/AuthTest.java @@ -11,7 +11,7 @@ public class AuthTest { private final List groeplijst = List.of("testgroep1", "testgroep2"); - private final User testUser = new User("John Doe", "john.doe@gmail.com", groeplijst, "123456"); + private final User testUser = new User("John Doe", "John", "Doe", "john.doe@gmail.com", groeplijst, "123456"); private final List authLijst = List.of(new SimpleGrantedAuthority("READ_AUTHORITY")); private final Auth auth = new Auth(testUser, authLijst); diff --git a/backend/app/src/test/java/com/ugent/pidgeon/model/UserTest.java b/backend/app/src/test/java/com/ugent/pidgeon/model/UserTest.java index 73238ab3..37dcf4e8 100644 --- a/backend/app/src/test/java/com/ugent/pidgeon/model/UserTest.java +++ b/backend/app/src/test/java/com/ugent/pidgeon/model/UserTest.java @@ -10,7 +10,7 @@ public class UserTest { private final List groeplijst = List.of("testgroep1", "testgroep2"); - private final User testUser = new User("John Doe", "john.doe@gmail.com", groeplijst, "123456"); + private final User testUser = new User("John Doe", "John", "Doe", "john.doe@gmail.com", groeplijst, "123456"); @Test public void isNotNull(){