From 4bcc6cc9cbb67b9013aa295978a7d6fb5050d8d9 Mon Sep 17 00:00:00 2001 From: anhefti Date: Thu, 17 Nov 2022 13:36:19 +0100 Subject: [PATCH] fix tests --- .../gui/integration/UseCasesIntegrationTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/java/ch/ethz/seb/sebserver/gui/integration/UseCasesIntegrationTest.java b/src/test/java/ch/ethz/seb/sebserver/gui/integration/UseCasesIntegrationTest.java index 096337bc..dff620f6 100644 --- a/src/test/java/ch/ethz/seb/sebserver/gui/integration/UseCasesIntegrationTest.java +++ b/src/test/java/ch/ethz/seb/sebserver/gui/integration/UseCasesIntegrationTest.java @@ -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 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 chaptersCall = restService .getBuilder(GetCourseChapters.class)