Skip to content

Merge branch 'develop' into feature/communication/implement-faq-search #368

Merge branch 'develop' into feature/communication/implement-faq-search

Merge branch 'develop' into feature/communication/implement-faq-search #368

GitHub Actions / Junit Results failed Oct 12, 2024 in 0s

Junit Results

Junit Results ran 8159 in 1115.0249999999999 seconds 0 Errored, 1 Failed, 2 Skipped

Annotations

Check failure on line 0 in test

See this annotation in the file changed.

@github-actions github-actions / Junit Results

test#L0

Junit Results ran 8159 in 1115.0249999999999 seconds 0 Errored, 1 Failed, 2 Skipped

Check failure on line 1957 in /home/runner/work/Artemis/Artemis/src/test/java/de/tum/cit/aet/artemis/exam/StudentExamIntegrationTest.java

See this annotation in the file changed.

@github-actions github-actions / Junit Results

testGradedStudentExamSummaryWithGradingScaleAsStudentBeforePublishResults()

Junit test testGradedStudentExamSummaryWithGradingScaleAsStudentBeforePublishResults() failed 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
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)