Skip to content
Snippets Groups Projects
Commit cb5d2d4f authored by Michael Roth's avatar Michael Roth
Browse files

Fixed: Wrong number of questions in Test03

parent 8ecfc0c0
No related branches found
No related tags found
No related merge requests found
Pipeline #98913 passed
...@@ -97,7 +97,7 @@ class Lab03Test { ...@@ -97,7 +97,7 @@ class Lab03Test {
List<?> questions = gameController.getQuestions(categories, 2); List<?> questions = gameController.getQuestions(categories, 2);
assertNotNull(questions); assertNotNull(questions);
assertFalse(questions.isEmpty(), "Questions for categories should not be empty"); assertFalse(questions.isEmpty(), "Questions for categories should not be empty");
assertTrue(questions.size() <= 2, "Should at most return 2 questions"); assertTrue(questions.size() <= 4, "Should at most return 4 questions, 2 per category");
Object player = gameController.getOrCreatePlayer("PlayerName"); Object player = gameController.getOrCreatePlayer("PlayerName");
assertNotNull(player); assertNotNull(player);
...@@ -123,7 +123,7 @@ class Lab03Test { ...@@ -123,7 +123,7 @@ class Lab03Test {
List<?> questions = gameController.getQuestions(categories, 2); List<?> questions = gameController.getQuestions(categories, 2);
assertNotNull(questions); assertNotNull(questions);
assertFalse(questions.isEmpty(), "Questions for categories should not be empty"); assertFalse(questions.isEmpty(), "Questions for categories should not be empty");
assertTrue(questions.size() <= 2, "Should at most return 2 questions"); assertTrue(questions.size() <= 4, "Should at most return 4 questions, 2 per category");
Object player = gameController.getOrCreatePlayer("PlayerName"); Object player = gameController.getOrCreatePlayer("PlayerName");
assertNotNull(player); assertNotNull(player);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment