From c5ff3b0369f4ac0841889ef2f37e99ec3e2e9f86 Mon Sep 17 00:00:00 2001 From: anhefti Date: Thu, 10 Nov 2022 11:08:42 +0100 Subject: [PATCH] fixed exam update task : has changed test --- .../webservice/servicelayer/session/impl/ExamUpdateHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/ExamUpdateHandler.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/ExamUpdateHandler.java index 51bbb203..b792fe8f 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/ExamUpdateHandler.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/ExamUpdateHandler.java @@ -338,7 +338,7 @@ class ExamUpdateHandler { } private boolean hasChanges(final Exam exam, final QuizData quizData) { - if (Utils.isEqualsWithEmptyCheck(exam.name, quizData.name) || + if (!Utils.isEqualsWithEmptyCheck(exam.name, quizData.name) || !Objects.equals(exam.startTime, quizData.startTime) || !Objects.equals(exam.endTime, quizData.endTime) || !Utils.isEqualsWithEmptyCheck(exam.getDescription(), quizData.description) ||