Skip to content

Quiz exercises: Fix an issue when automatically evaluating a live quiz #6409

Quiz exercises: Fix an issue when automatically evaluating a live quiz

Quiz exercises: Fix an issue when automatically evaluating a live quiz #6409

GitHub Actions / H2 Tests failed Dec 10, 2024 in 1s

8500 passed, 2 failed and 1 skipped

Tests failed
Report exceeded GitHub limit of 65535 bytes and has been trimmed

Annotations

Check failure on line 141 in src/main/java/de/tum/cit/aet/artemis/exam/service/ExamLiveEventsService.java

See this annotation in the file changed.

@github-actions github-actions / H2 Tests

de.tum.cit.aet.artemis.modeling.ModelingExerciseIntegrationTest ► testUpdateModelingExerciseForExam_asInstructor()

Failed test found in:
  build/test-results/test/TEST-de.tum.cit.aet.artemis.modeling.ModelingExerciseIntegrationTest.xml
Error:
  Wanted but not invoked:
Raw output
Wanted but not invoked:
examLiveEventsService.createAndSendProblemStatementUpdateEvent(
    ModelingExercise{id=1458, maxPoints='5.0', diagramType='ClassDiagram', exampleSolutionModel='This is my example solution model', exampleSolutionExplanation='This is my example solution model'},
    "notified!",
    <any>
);
-> at de.tum.cit.aet.artemis.exam.service.ExamLiveEventsService.createAndSendProblemStatementUpdateEvent(ExamLiveEventsService.java:141)
Actually, there were zero interactions with this mock.

	at app//de.tum.cit.aet.artemis.exam.service.ExamLiveEventsService.createAndSendProblemStatementUpdateEvent(ExamLiveEventsService.java:141)
	at app//de.tum.cit.aet.artemis.modeling.ModelingExerciseIntegrationTest.testUpdateModelingExerciseForExam_asInstructor(ModelingExerciseIntegrationTest.java:271)
	at java.base@21.0.5/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base@21.0.5/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at java.base@21.0.5/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
	at java.base@21.0.5/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
	at java.base@21.0.5/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
	at java.base@21.0.5/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)

Check failure on line 152 in src/main/java/de/tum/cit/aet/artemis/communication/service/notifications/MailService.java

See this annotation in the file changed.

@github-actions github-actions / H2 Tests

de.tum.cit.aet.artemis.programming.icl.LocalVCSshSettingsTest ► initializationError

Failed test found in:
  build/test-results/test/TEST-de.tum.cit.aet.artemis.programming.icl.LocalVCSshSettingsTest.xml
Error:
  org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression: "reason.getMessage()" (template: "mail/dataExportFailedAdminEmail" - line 16, col 8)
Raw output
org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression: "reason.getMessage()" (template: "mail/dataExportFailedAdminEmail" - line 16, col 8)
	at app//org.thymeleaf.spring6.expression.SPELVariableExpressionEvaluator.evaluate(SPELVariableExpressionEvaluator.java:292)
	at app//org.thymeleaf.standard.expression.VariableExpression.executeVariableExpression(VariableExpression.java:166)
	at app//org.thymeleaf.standard.expression.SimpleExpression.executeSimple(SimpleExpression.java:66)
	at app//org.thymeleaf.standard.expression.Expression.execute(Expression.java:109)
	at app//org.thymeleaf.standard.expression.Expression.execute(Expression.java:138)
	at app//org.thymeleaf.standard.expression.MessageExpression.executeMessageExpression(MessageExpression.java:256)
	at app//org.thymeleaf.standard.expression.SimpleExpression.executeSimple(SimpleExpression.java:69)
	at app//org.thymeleaf.standard.expression.Expression.execute(Expression.java:109)
	at app//org.thymeleaf.standard.expression.Expression.execute(Expression.java:138)
	at app//org.thymeleaf.standard.processor.AbstractStandardExpressionAttributeTagProcessor.doProcess(AbstractStandardExpressionAttributeTagProcessor.java:144)
	at app//org.thymeleaf.processor.element.AbstractAttributeTagProcessor.doProcess(AbstractAttributeTagProcessor.java:74)
	at app//org.thymeleaf.processor.element.AbstractElementTagProcessor.process(AbstractElementTagProcessor.java:95)
	at app//org.thymeleaf.util.ProcessorConfigurationUtils$ElementTagProcessorWrapper.process(ProcessorConfigurationUtils.java:633)
	at app//org.thymeleaf.engine.ProcessorTemplateHandler.handleOpenElement(ProcessorTemplateHandler.java:1314)
	at app//org.thymeleaf.engine.OpenElementTag.beHandled(OpenElementTag.java:205)
	at app//org.thymeleaf.engine.TemplateModel.process(TemplateModel.java:136)
	at app//org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:661)
	at app//org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1103)
	at app//org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1064)
	at app//org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1053)
	at app//de.tum.cit.aet.artemis.communication.service.notifications.MailService.prepareTemplateAndSendEmailWithArgumentInSubject(MailService.java:152)
	at app//de.tum.cit.aet.artemis.communication.service.notifications.MailService.sendDataExportFailedEmailForAdmin(MailService.java:135)
	at app//de.tum.cit.aet.artemis.communication.service.notifications.MailService.sendDataExportFailedEmailForAdmin(MailService.java:131)
	at app//de.tum.cit.aet.artemis.communication.service.notifications.MailService.sendDataExportFailedEmailToAdmin(MailService.java:181)
	at app//de.tum.cit.aet.artemis.communication.service.notifications.MailService.sendDataExportFailedEmailToAdmin(MailService.java:180)
	at java.base@21.0.5/java.lang.reflect.Method.invoke(Method.java:580)
	at app//org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:359)
	at app//org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:723)
	at app//de.tum.cit.aet.artemis.communication.service.notifications.MailService$$SpringCGLIB$$0.sendDataExportFailedEmailToAdmin(<generated>)
	at app//de.tum.cit.aet.artemis.core.service.export.DataExportCreationService.handleCreationFailure(DataExportCreationService.java:174)
	at app//de.tum.cit.aet.artemis.core.service.export.DataExportCreationService.createDataExport(DataExportCreationService.java:142)
	at app//de.tum.cit.aet.artemis.core.service.DataExportScheduleService.createDataExport(DataExportScheduleService.java:106)
	at app//de.tum.cit.aet.artemis.core.service.DataExportScheduleService.lambda$createDataExportsAndDeleteOldOnes$0(DataExportScheduleService.java:76)
	at java.base@21.0.5/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base@21.0.5/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base@21.0.5/java.lang.Thread.run(Thread.java:1583)
Caused by: org.springframework.expression.EvaluationException: Calling method 'getMessage' is forbidden for type 'class java.lang.RuntimeException' in this expression context.
	at app//org.thymeleaf.spring6.expression.ThymeleafEvaluationContext$ThymeleafEvaluationContextACLMethodResolver.resolve(ThymeleafEvaluationContext.java:276)
	at app//org.springframework.expression.spel.ast.MethodReference.findAccessorForMethod(MethodReference.java:218)
	at app//org.springframework.expression.spel.ast.MethodReference.getValueInternal(MethodReference.java:148)
	at app//org.springframework.expression.spel.ast.MethodReference$MethodValueRef.getValue(MethodReference.java:398)
	at app//org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:97)
	at app//org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:116)
	at app//org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:338)
	at app//org.thymeleaf.spring6.expression.SPELVariableExpressionEvaluator.evaluate(SPELVariableExpressionEvaluator.java:265)
	at app//org.thymeleaf.standard.expression.VariableExpression.executeVariableExpression(VariableExpression.java:166)
	at app//org.thymeleaf.standard.expression.SimpleExpression.executeSimple(SimpleExpression.java:66)
	at app//org.thymeleaf.standard.expression.Expression.execute(Expression.java:109)
	at app//org.thymeleaf.standard.expression.Expression.execute(Expression.java:138)
	at app//org.thymeleaf.standard.expression.MessageExpression.executeMessageExpression(MessageExpression.java:256)
	at app//org.thymeleaf.standard.expression.SimpleExpression.executeSimple(SimpleExpression.java:69)
	at app//org.thymeleaf.standard.expression.Expression.execute(Expression.java:109)
	at app//org.thymeleaf.standard.expression.Expression.execute(Expression.java:138)
	at app//org.thymeleaf.standard.processor.AbstractStandardExpressionAttributeTagProcessor.doProcess(AbstractStandardExpressionAttributeTagProcessor.java:144)
	at app//org.thymeleaf.processor.element.AbstractAttributeTagProcessor.doProcess(AbstractAttributeTagProcessor.java:74)
	at app//org.thymeleaf.processor.element.AbstractElementTagProcessor.process(AbstractElementTagProcessor.java:95)
	at app//org.thymeleaf.util.ProcessorConfigurationUtils$ElementTagProcessorWrapper.process(ProcessorConfigurationUtils.java:633)
	at app//org.thymeleaf.engine.ProcessorTemplateHandler.handleOpenElement(ProcessorTemplateHandler.java:1314)
	at app//org.thymeleaf.engine.OpenElementTag.beHandled(OpenElementTag.java:205)
	at app//org.thymeleaf.engine.TemplateModel.process(TemplateModel.java:136)
	at app//org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:661)
	at app//org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1103)
	at app//org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1064)
	at app//org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1053)
	at app//de.tum.cit.aet.artemis.communication.service.notifications.MailService.prepareTemplateAndSendEmailWithArgumentInSubject(MailService.java:152)
	at app//de.tum.cit.aet.artemis.communication.service.notifications.MailService.sendDataExportFailedEmailForAdmin(MailService.java:135)
	at java.base@21.0.5/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:733)
	at org.mockito.internal.util.reflection.InstrumentationMemberAccessor$Dispatcher$ByteBuddy$k86sHa6T.invokeWithArguments(Unknown Source)
	at app//org.mockito.internal.util.reflection.InstrumentationMemberAccessor.invoke(InstrumentationMemberAccessor.java:251)
	at app//org.mockito.internal.util.reflection.ModuleMemberAccessor.invoke(ModuleMemberAccessor.java:55)
	at app//org.mockito.internal.creation.bytebuddy.MockMethodAdvice.tryInvoke(MockMethodAdvice.java:314)
	at app//org.mockito.internal.creation.bytebuddy.MockMethodAdvice$RealMethodCall.invoke(MockMethodAdvice.java:234)
	at app//org.mockito.internal.invocation.InterceptedInvocation.callRealMethod(InterceptedInvocation.java:142)
	at app//org.mockito.internal.stubbing.answers.CallsRealMethods.answer(CallsRealMethods.java:45)
	at app//org.mockito.Answers.answer(Answers.java:90)
	at app//org.mockito.internal.handler.MockHandlerImpl.handle(MockHandlerImpl.java:111)
	at app//org.mockito.internal.handler.NullResultGuardian.handle(NullResultGuardian.java:29)
	at app//org.mockito.internal.handler.InvocationNotifierHandler.handle(InvocationNotifierHandler.java:34)
	at app//org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:82)
	at app//org.mockito.internal.creation.bytebuddy.MockMethodAdvice.handle(MockMethodAdvice.java:134)
	at app//de.tum.cit.aet.artemis.communication.service.notifications.MailService.sendDataExportFailedEmailForAdmin(MailService.java:131)
	at app//de.tum.cit.aet.artemis.communication.service.notifications.MailService.sendDataExportFailedEmailToAdmin(MailService.java:181)
	at java.base@21.0.5/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:733)
	at org.mockito.internal.util.reflection.InstrumentationMemberAccessor$Dispatcher$ByteBuddy$k86sHa6T.invokeWithArguments(Unknown Source)
	at app//org.mockito.internal.util.reflection.InstrumentationMemberAccessor.invoke(InstrumentationMemberAccessor.java:251)
	at app//org.mockito.internal.util.reflection.ModuleMemberAccessor.invoke(ModuleMemberAccessor.java:55)
	at app//org.mockito.internal.creation.bytebuddy.MockMethodAdvice.tryInvoke(MockMethodAdvice.java:314)
	at app//org.mockito.internal.creation.bytebuddy.MockMethodAdvice$RealMethodCall.invoke(MockMethodAdvice.java:234)
	at app//org.mockito.internal.invocation.InterceptedInvocation.callRealMethod(InterceptedInvocation.java:142)
	at app//org.mockito.internal.stubbing.answers.CallsRealMethods.answer(CallsRealMethods.java:45)
	at app//org.mockito.Answers.answer(Answers.java:90)
	at app//org.mockito.internal.handler.MockHandlerImpl.handle(MockHandlerImpl.java:111)
	at app//org.mockito.internal.handler.NullResultGuardian.handle(NullResultGuardian.java:29)
	at app//org.mockito.internal.handler.InvocationNotifierHandler.handle(InvocationNotifierHandler.java:34)
	at app//org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:82)
	at app//org.mockito.internal.creation.bytebuddy.MockMethodAdvice.handle(MockMethodAdvice.java:134)
	... 12 more