Development
: Migrate FAQ feature to new client guidelines
#9902
GitHub Actions / H2 Tests
failed
Dec 9, 2024 in 0s
8504 passed, 2 failed and 1 skipped
Annotations
github-actions / H2 Tests
de.tum.cit.aet.artemis.exam.StudentExamIntegrationTest ► testGradedFinalExamSummaryWithPlagiarismAndNotParticipatedBonusExamAsStudent()
Failed test found in:
build/test-results/test/TEST-de.tum.cit.aet.artemis.exam.StudentExamIntegrationTest.xml
Error:
org.mockito.exceptions.misusing.UnfinishedStubbingException:
Raw output
org.mockito.exceptions.misusing.UnfinishedStubbingException:
Unfinished stubbing detected here:
-> at de.tum.cit.aet.artemis.core.connector.GitlabRequestMockProvider.mockUserExists(GitlabRequestMockProvider.java:478)
E.g. thenReturn() may be missing.
Examples of correct stubbing:
when(mock.isOk()).thenReturn(true);
when(mock.isOk()).thenThrow(exception);
doThrow(exception).when(mock).someVoidMethod();
Hints:
1. missing thenReturn()
2. you are trying to stub a final method, which is not supported
3. you are stubbing the behaviour of another mock inside before 'thenReturn' instruction is completed
at app//org.gitlab4j.api.UserApi.getUser(UserApi.java:348)
at app//de.tum.cit.aet.artemis.core.connector.GitlabRequestMockProvider.mockUserExists(GitlabRequestMockProvider.java:478)
at app//de.tum.cit.aet.artemis.core.connector.GitlabRequestMockProvider.mockConfigureRepository(GitlabRequestMockProvider.java:468)
at app//de.tum.cit.aet.artemis.shared.base.AbstractSpringIntegrationJenkinsGitlabTest.mockConnectorRequestsForStartParticipation(AbstractSpringIntegrationJenkinsGitlabTest.java:246)
at app//de.tum.cit.aet.artemis.programming.util.ProgrammingExerciseTestService.prepareStudentExamsForConduction(ProgrammingExerciseTestService.java:2010)
at app//de.tum.cit.aet.artemis.exam.StudentExamIntegrationTest.prepareStudentExamsForConduction(StudentExamIntegrationTest.java:442)
at app//de.tum.cit.aet.artemis.exam.StudentExamIntegrationTest.createStudentExamWithResultsAndAssessments(StudentExamIntegrationTest.java:1819)
at app//de.tum.cit.aet.artemis.exam.StudentExamIntegrationTest.testGradedFinalExamSummaryWithPlagiarismAndNotParticipatedBonusExamAsStudent(StudentExamIntegrationTest.java:2212)
at [email protected]/java.lang.reflect.Method.invoke(Method.java:580)
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)
github-actions / H2 Tests
de.tum.cit.aet.artemis.programming.icl.LocalVCSshIntegrationTest ► testUserTriesToDeleteBranch()
Failed test found in:
build/test-results/test/TEST-de.tum.cit.aet.artemis.programming.icl.LocalVCSshIntegrationTest.xml
Error:
org.apache.commons.io.IOExceptionList: 1 exception(s): [org.apache.commons.io.IOIndexedException: FileNotFoundException #6: File does not exist: /tmp/SHORTBCC71846062A204179095FC0F830031B6A3ETSTEXC/shortbcc71846062a204179095fc0f830031b6a3etstexc-localvcsshintstudent1.git/gc.log.lock]
Raw output
org.apache.commons.io.IOExceptionList: 1 exception(s): [org.apache.commons.io.IOIndexedException: FileNotFoundException #6: File does not exist: /tmp/SHORTBCC71846062A204179095FC0F830031B6A3ETSTEXC/shortbcc71846062a204179095fc0f830031b6a3etstexc-localvcsshintstudent1.git/gc.log.lock]
at org.apache.commons.io.IOExceptionList.checkEmpty(IOExceptionList.java:50)
at org.apache.commons.io.function.IOStream.forAll(IOStream.java:357)
at org.apache.commons.io.function.IOStreams.forAll(IOStreams.java:42)
at org.apache.commons.io.function.IOStreams.forAll(IOStreams.java:36)
at org.apache.commons.io.function.IOConsumer.forAll(IOConsumer.java:80)
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:367)
at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1242)
at de.tum.cit.aet.artemis.programming.util.LocalRepository.resetLocalRepo(LocalRepository.java:122)
at de.tum.cit.aet.artemis.programming.icl.LocalVCIntegrationTest.removeRepositories(LocalVCIntegrationTest.java:73)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
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)
Caused by: org.apache.commons.io.IOIndexedException: FileNotFoundException #6: File does not exist: /tmp/SHORTBCC71846062A204179095FC0F830031B6A3ETSTEXC/shortbcc71846062a204179095fc0f830031b6a3etstexc-localvcsshintstudent1.git/gc.log.lock
at org.apache.commons.io.function.IOStream.lambda$forAll$11(IOStream.java:352)
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
at org.apache.commons.io.function.IOStream.forAll(IOStream.java:343)
... 13 more
Caused by: java.io.FileNotFoundException: File does not exist: /tmp/SHORTBCC71846062A204179095FC0F830031B6A3ETSTEXC/shortbcc71846062a204179095fc0f830031b6a3etstexc-localvcsshintstudent1.git/gc.log.lock
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1396)
at org.apache.commons.io.function.IOStream.lambda$forAll$11(IOStream.java:345)
... 16 more
Loading