fix tests
This commit is contained in:
parent
ea13bb6ca4
commit
4bcc6cc9cb
1 changed files with 6 additions and 6 deletions
|
@ -3530,18 +3530,18 @@ public class UseCasesIntegrationTest extends GuiIntegrationTest {
|
||||||
.withURIVariable(API.PARAM_MODEL_ID, exam.getModelId())
|
.withURIVariable(API.PARAM_MODEL_ID, exam.getModelId())
|
||||||
.call();
|
.call();
|
||||||
|
|
||||||
assertTrue(applyCall.hasError());
|
assertFalse(applyCall.hasError());
|
||||||
assertTrue(applyCall.getError() instanceof RestCallError);
|
Exam exam2 = applyCall.get();
|
||||||
assertTrue(applyCall.getError().toString().contains("SEB Restriction feature not available"));
|
assertTrue(exam2.sebRestriction);
|
||||||
|
|
||||||
final Result<Exam> deleteCall = restService
|
final Result<Exam> deleteCall = restService
|
||||||
.getBuilder(DeactivateSEBRestriction.class)
|
.getBuilder(DeactivateSEBRestriction.class)
|
||||||
.withURIVariable(API.PARAM_MODEL_ID, exam.getModelId())
|
.withURIVariable(API.PARAM_MODEL_ID, exam.getModelId())
|
||||||
.call();
|
.call();
|
||||||
|
|
||||||
assertTrue(deleteCall.hasError());
|
assertFalse(deleteCall.hasError());
|
||||||
assertTrue(deleteCall.getError() instanceof RestCallError);
|
exam2 = deleteCall.get();
|
||||||
assertTrue(deleteCall.getError().toString().contains("SEB Restriction feature not available"));
|
assertFalse(exam2.sebRestriction);
|
||||||
|
|
||||||
final Result<Chapters> chaptersCall = restService
|
final Result<Chapters> chaptersCall = restService
|
||||||
.getBuilder(GetCourseChapters.class)
|
.getBuilder(GetCourseChapters.class)
|
||||||
|
|
Loading…
Reference in a new issue