I've got the following method
public void myMethod(final MyObject myObject) {
if (myObject.isDownload()) {
// Do something
} else {
super.myMethod();
}
}
I want to verify now in a JUnit test, that the super
implementation has been called.
I also want to abort the test, if the super
call has been performed, since the underlying implementation is very complicated and hard to test respectively mock.
I'm using Mockito as a mocking framework.