From eaab4f8de2bd3a21af287f889dc791684b8de0b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B6ckelmann?= Date: Sat, 11 Nov 2023 10:22:31 +0100 Subject: [PATCH] Consider increased number of tasks --- backend/.idea/workspace.xml | 41 +++++++++---------- .../java/core/tasks/TaskRepositoryTest.java | 4 +- 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/backend/.idea/workspace.xml b/backend/.idea/workspace.xml index bac7f1a..3e12b67 100644 --- a/backend/.idea/workspace.xml +++ b/backend/.idea/workspace.xml @@ -86,7 +86,22 @@ - + + + + + + + + @@ -134,22 +149,6 @@ - - - - - - - @@ -174,11 +173,11 @@ - - - - + + + + diff --git a/backend/src/test/java/core/tasks/TaskRepositoryTest.java b/backend/src/test/java/core/tasks/TaskRepositoryTest.java index 5df74d5..99ea0ce 100644 --- a/backend/src/test/java/core/tasks/TaskRepositoryTest.java +++ b/backend/src/test/java/core/tasks/TaskRepositoryTest.java @@ -49,7 +49,7 @@ public class TaskRepositoryTest { List tasks_user1_false = taskRepository.findAllByUser(testUser1.getUsername(), false); List tasks_user1_true = taskRepository.findAllByUser(testUser1.getUsername(), true); assertEquals(7, tasks_user1_true.size()); - assertEquals(7, tasks_user1_false.size()); + assertEquals(8, tasks_user1_false.size()); assertTrue(tasks_user1_false.contains(testEntityManager.find(Task.class, 1L))); assertTrue(tasks_user1_false.contains(testEntityManager.find(Task.class, 3L))); @@ -149,7 +149,7 @@ public class TaskRepositoryTest { List active = taskRepository.findAllActive(testuser1.getUsername(), referenceDate); //1,3,5,11,12 - assertEquals(5, active.size()); + assertEquals(6, active.size()); assertTrue(active.contains(testEntityManager.find(Task.class, 1L))); assertTrue(active.contains(testEntityManager.find(Task.class, 3L))); assertTrue(active.contains(testEntityManager.find(Task.class, 5L)));