fix tests

This commit is contained in:
anhefti 2022-11-17 13:36:19 +01:00
parent ea13bb6ca4
commit 4bcc6cc9cb

View file

@ -3530,18 +3530,18 @@ public class UseCasesIntegrationTest extends GuiIntegrationTest {
.withURIVariable(API.PARAM_MODEL_ID, exam.getModelId())
.call();
assertTrue(applyCall.hasError());
assertTrue(applyCall.getError() instanceof RestCallError);
assertTrue(applyCall.getError().toString().contains("SEB Restriction feature not available"));
assertFalse(applyCall.hasError());
Exam exam2 = applyCall.get();
assertTrue(exam2.sebRestriction);
final Result<Exam> deleteCall = restService
.getBuilder(DeactivateSEBRestriction.class)
.withURIVariable(API.PARAM_MODEL_ID, exam.getModelId())
.call();
assertTrue(deleteCall.hasError());
assertTrue(deleteCall.getError() instanceof RestCallError);
assertTrue(deleteCall.getError().toString().contains("SEB Restriction feature not available"));
assertFalse(deleteCall.hasError());
exam2 = deleteCall.get();
assertFalse(exam2.sebRestriction);
final Result<Chapters> chaptersCall = restService
.getBuilder(GetCourseChapters.class)