Merge branch 'develop' into feature/communication/implement-faq-search #368
GitHub Actions / H2 Tests
failed
Oct 12, 2024 in 1s
8156 passed, 1 failed and 2 skipped
Annotations
github-actions / H2 Tests
de.tum.cit.aet.artemis.exam.StudentExamIntegrationTest ► testGradedStudentExamSummaryWithGradingScaleAsStudentBeforePublishResults()
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.mockProtectBranch(GitlabRequestMockProvider.java:513)
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.ProtectedBranchesApi.protectBranch(ProtectedBranchesApi.java:123)
at app//de.tum.cit.aet.artemis.core.connector.GitlabRequestMockProvider.mockProtectBranch(GitlabRequestMockProvider.java:513)
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:241)
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.testGradedStudentExamSummaryWithGradingScaleAsStudentBeforePublishResults(StudentExamIntegrationTest.java:1958)
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