diff --git a/src/test/java/de/tum/cit/aet/artemis/atlas/competency/AbstractCompetencyPrerequisiteIntegrationTest.java b/src/test/java/de/tum/cit/aet/artemis/atlas/competency/AbstractCompetencyPrerequisiteIntegrationTest.java index fe49bf6e501c..ea604fdfdf65 100644 --- a/src/test/java/de/tum/cit/aet/artemis/atlas/competency/AbstractCompetencyPrerequisiteIntegrationTest.java +++ b/src/test/java/de/tum/cit/aet/artemis/atlas/competency/AbstractCompetencyPrerequisiteIntegrationTest.java @@ -236,7 +236,7 @@ void shouldReturnCompetenciesForCourseFiltered(CourseCompetency newCompetency) t List competenciesOfCourse = getAllFilteredCall(course.getId(), HttpStatus.OK); - assertThat(competenciesOfCourse).noneMatch(c -> c.getId().equals(courseCompetency.getId())); + assertThat(competenciesOfCourse).noneMatch(c -> c.getId().equals(newCompetency.getId())); } // Test diff --git a/src/test/java/de/tum/cit/aet/artemis/atlas/competency/CourseCompetencyIntegrationTest.java b/src/test/java/de/tum/cit/aet/artemis/atlas/competency/CourseCompetencyIntegrationTest.java index 5d7b00dbae79..e28c81456b18 100644 --- a/src/test/java/de/tum/cit/aet/artemis/atlas/competency/CourseCompetencyIntegrationTest.java +++ b/src/test/java/de/tum/cit/aet/artemis/atlas/competency/CourseCompetencyIntegrationTest.java @@ -154,7 +154,7 @@ void shouldReturnCompetenciesForStudentOfCourse() throws Exception { @Override List getAllFilteredCall(long courseId, HttpStatus expectedStatus) throws Exception { - return request.getList("/api/courses/" + courseId + "/course-competencies?filtered=true", expectedStatus, CourseCompetency.class); + return request.getList("/api/courses/" + courseId + "/course-competencies?filter=true", expectedStatus, CourseCompetency.class); } @Test