Skip to content

Commit

Permalink
Fixed test. (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfloe authored Sep 2, 2024
1 parent b99cadf commit b944036
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions server/src/test/java/de/uftos/services/GradeServiceTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,6 @@ void setUp() {
Server server =
new Server(new TimetableMetadata(45, 8, "8:00", breaks), "2024", "test@uftos.de");
when(serverRepository.findAll()).thenReturn(List.of(server));
when(studentGroupRepository.findByGrades(grade1Mock)).thenReturn(
List.of(studentGroup1, studentGroup2));
when(studentGroupRepository.findAllByGrades(List.of("123"))).thenReturn(
List.of(studentGroup1, studentGroup2));
when(gradeRepository.findById("123")).thenReturn(Optional.of(grade1Mock));
Expand Down

0 comments on commit b944036

Please sign in to comment.