fixed tests

This commit is contained in:
anhefti 2021-11-09 09:07:26 +01:00
parent 2447009f99
commit a747c48458

View file

@ -51,7 +51,8 @@ public class ExamProctoringRoomServiceTest extends AdministrationAPIIntegrationT
assertFalse(runningExamsForInstitution.hasError());
final Collection<Exam> collection = runningExamsForInstitution.get();
assertFalse(collection.isEmpty());
final Exam exam = collection.iterator().next();
final Exam exam = collection.stream().filter(e -> e.id == 2L).findAny().orElse(null);
assertNotNull(exam);
assertEquals("Demo Quiz 6 (MOCKUP)", exam.name);
assertEquals("2", String.valueOf(exam.id));
}