diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/SEBRestrictionServiceImpl.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/SEBRestrictionServiceImpl.java index dfc47920..d703945f 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/SEBRestrictionServiceImpl.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/SEBRestrictionServiceImpl.java @@ -202,7 +202,8 @@ public class SEBRestrictionServiceImpl implements SEBRestrictionService { .map(sebRestrictionData -> { if (log.isDebugEnabled()) { - log.debug("Applying SEB Client restriction on LMS with: {}", sebRestrictionData); + log.debug(" *** SEB Restriction *** Applying SEB Client restriction on LMS with: {}", + sebRestrictionData); } return this.lmsAPIService @@ -221,7 +222,7 @@ public class SEBRestrictionServiceImpl implements SEBRestrictionService { public Result releaseSEBClientRestriction(final Exam exam) { if (log.isDebugEnabled()) { - log.debug("Release SEB Client restrictions for exam: {}", exam); + log.debug(" *** SEB Restriction *** Release SEB Client restrictions from LMS for exam: {}", exam); } return this.lmsAPIService diff --git a/src/test/java/ch/ethz/seb/sebserver/webservice/integration/api/admin/ExamProctoringRoomServiceTest.java b/src/test/java/ch/ethz/seb/sebserver/webservice/integration/api/admin/ExamProctoringRoomServiceTest.java index b13bc549..9c1874c6 100644 --- a/src/test/java/ch/ethz/seb/sebserver/webservice/integration/api/admin/ExamProctoringRoomServiceTest.java +++ b/src/test/java/ch/ethz/seb/sebserver/webservice/integration/api/admin/ExamProctoringRoomServiceTest.java @@ -51,7 +51,8 @@ public class ExamProctoringRoomServiceTest extends AdministrationAPIIntegrationT assertFalse(runningExamsForInstitution.hasError()); final Collection 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)); }