add verification afterwards of stubbed mocks
Opened this issue · 0 comments
mvollebregt commented
Something like:
Stub stub = when(...).with(...).then(...);
// run code
verify(stub);
This can help the user if the stub was not matched: a verification exception with extra information will be thrown.