Menu

#22 No error when setting expectation on an "unmocked" method

EasyMock_CE_2.4
open
5
2012-10-05
2009-05-24
No

On a partial mock, if you wrongly set and expectation on a method that isn't mocked:

  • The real method gets called
  • Later, the recording will break but the error message is misleading

The error should be thrown right away and with a meaningful message.

Discussion


Log in to post a comment.