Skip to content

Commit

Permalink
fix test: typo in request url and wrong competency id
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianAnzinger committed Dec 2, 2024
1 parent 6d5bc75 commit 1455912
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ void shouldReturnCompetenciesForCourseFiltered(CourseCompetency newCompetency) t

List<? extends CourseCompetency> 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ void shouldReturnCompetenciesForStudentOfCourse() throws Exception {

@Override
List<? extends CourseCompetency> 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
Expand Down

0 comments on commit 1455912

Please sign in to comment.