yuqi1129 opened a new issue, #9554:
URL: https://github.com/apache/gravitino/issues/9554
### Version
main branch
### Describe what's wrong
```text
TestJobManager > testGetJobTemplate() FAILED
org.mockito.exceptions.misusing.UnfinishedStubbingException:
Unfinished stubbing detected here:
-> at
org.apache.gravitino.job.TestJobManager.testGetJobTemplate(TestJobManager.java:279)
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.apache.gravitino.job.TestJobManager.testGetJobTemplate(TestJobManager.java:281)
```
### Error message and/or stacktrace
Please see above.
### How to reproduce
Please see link:
https://github.com/apache/gravitino/actions/runs/20497547338/job/58899420472?pr=9549
### Additional context
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]