vmware/lmock — Issue #3: Refine failed expectations
Author: fstrudel
Created: 2011-12-06 13:39:36+00:00
State: open

Would be nice to have some hints when an expectation fails.

For instance, when I have

willInvoke(1).of(myMockObject).myMethod(expectedObject);

and this expectation fails, I'd like to know:

- whether 'myMethod' was called or not
- and/or the first parameter of 'myMethod' did not match the expectation 'expectedObject'

so that I know that my equals() method is wrong or my checker is wrong, etc...