I’m just wondering if it is possible using Junit and easymock to ignore unexpected method calls?
I.e. instead of the test failing I want to be able to say – “at this point – ignore any unexpected method calls and just continue with the test as normal’
Thanks
With EasyMock you can create a nice mock, which unlike a normal mock object does not throw assertion errors if an unexpected/recorded call occurs. To quote the easymock documentation…
To create a nice mock, use the static createNiceMock(Class class) method on the Easymock class…
Reference: http://easymock.org/user-guide.html#mocking-nice