From 4a8d689df9108b2390890f9e34b79e71b4013eed Mon Sep 17 00:00:00 2001 From: Rajbir Singh Date: Wed, 23 Oct 2024 13:01:32 +0200 Subject: [PATCH] PMT-26 refactor GetAllEmployeesByProjectTest.java --- .../de/hmmh/pmt/project/GetAllEmployeesByProjectTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/test/java/de/hmmh/pmt/project/GetAllEmployeesByProjectTest.java b/src/test/java/de/hmmh/pmt/project/GetAllEmployeesByProjectTest.java index 7083385..01a9406 100644 --- a/src/test/java/de/hmmh/pmt/project/GetAllEmployeesByProjectTest.java +++ b/src/test/java/de/hmmh/pmt/project/GetAllEmployeesByProjectTest.java @@ -1,7 +1,6 @@ package de.hmmh.pmt.project; import de.hmmh.pmt.IntegrationTest; -import de.hmmh.pmt.db.Allocation; import de.hmmh.pmt.db.Project; import org.junit.jupiter.api.Test; import org.springframework.http.MediaType; @@ -39,7 +38,7 @@ public class GetAllEmployeesByProjectTest extends IntegrationTest { @Test void shouldReturnListOfEmployeesWhenAllParametersAreValid() throws Exception { Map allProjects = createTestProjectData(); - Map allocations = createTestAllocationData(allProjects); + createTestAllocationData(allProjects); this.mvc .perform(getRequest(allProjects.get("ai-research").getId())) @@ -52,7 +51,7 @@ public class GetAllEmployeesByProjectTest extends IntegrationTest { .thenThrow(new RestClientException("Internal Server Error")); Map allProjects = createTestProjectData(); - Map allocations = createTestAllocationData(allProjects); + createTestAllocationData(allProjects); this.mvc .perform(getRequest(allProjects.get("ai-research").getId()))