Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int calledCnt = 0;
- doAnswer(i -> {
- if (calledCnt == 0) {
- calledCnt += 1;
- throw new InternalServerErrorException("test");
- }
- return false;
- }).when(myClass.someFunction(any()));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement