Exam mode
: Generate student exam on demand if student is registered for the exam
#9123
GitHub Actions / H2 Tests
failed
Oct 12, 2024 in 0s
8230 passed, 2 failed and 2 skipped
Annotations
github-actions / H2 Tests
de.tum.cit.aet.artemis.exam.architecture.ExamRepositoryArchitectureTest ► enforceUsageOfTestRepository()
Failed test found in:
build/test-results/test/TEST-de.tum.cit.aet.artemis.exam.architecture.ExamRepositoryArchitectureTest.xml
Error:
java.lang.AssertionError: Architecture Violation [Priority: MEDIUM] - Rule 'classes that reside in a package 'de.tum.cit.aet.artemis.exam..' should not use repositories with subclasses, because Test Repositories should be used over production repositories, if such a repository exist.' was violated (2 times):
Raw output
java.lang.AssertionError: Architecture Violation [Priority: MEDIUM] - Rule 'classes that reside in a package 'de.tum.cit.aet.artemis.exam..' should not use repositories with subclasses, because Test Repositories should be used over production repositories, if such a repository exist.' was violated (2 times):
Test class de.tum.cit.aet.artemis.exam.ExamRegistrationIntegrationTest uses repository de.tum.cit.aet.artemis.exam.repository.StudentExamRepository which has subclasses: [JavaClass{name='de.tum.cit.aet.artemis.exam.test_repository.StudentExamTestRepository'}]
Test class de.tum.cit.aet.artemis.exam.service.ExamAccessServiceTest uses repository de.tum.cit.aet.artemis.exercise.repository.ExerciseRepository which has subclasses: [JavaClass{name='de.tum.cit.aet.artemis.exercise.repository.ExerciseTestRepository'}]
at com.tngtech.archunit.lang.ArchRule$Assertions.assertNoViolation(ArchRule.java:94)
at com.tngtech.archunit.lang.ArchRule$Assertions.check(ArchRule.java:86)
at com.tngtech.archunit.lang.ArchRule$Factory$SimpleArchRule.check(ArchRule.java:165)
at de.tum.cit.aet.artemis.shared.architecture.module.AbstractModuleRepositoryArchitectureTest.enforceUsageOfTestRepository(AbstractModuleRepositoryArchitectureTest.java:219)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
github-actions / H2 Tests
de.tum.cit.aet.artemis.programming.icl.LocalCIResourceIntegrationTest ► testGetBuildJobStatistics()
Failed test found in:
build/test-results/test/TEST-de.tum.cit.aet.artemis.programming.icl.LocalCIResourceIntegrationTest.xml
Error:
org.opentest4j.AssertionFailedError:
Raw output
org.opentest4j.AssertionFailedError:
expected: 2L
but was: 3L
at app//de.tum.cit.aet.artemis.programming.icl.LocalCIResourceIntegrationTest.testGetBuildJobStatistics(LocalCIResourceIntegrationTest.java:358)
at [email protected]/java.lang.reflect.Method.invoke(Method.java:580)
at [email protected]/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
at [email protected]/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at [email protected]/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at [email protected]/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at [email protected]/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at [email protected]/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Loading