Continue after throwing an exception

Viewed 492

I'm throwing an Exception in my unit test, but after it is thrown, I still want to be able to continue testing

doThrow(new Exception()).when(myMock).myMethod();
myMock.myMethod();
System.out.println("Here"); // this is never called
// Do verify and asserts

Is it possible to do this?

1 Answers
Related