As per title, just wondering if there is a mechanism with easymock to test if a method wasn't called during it's lifetime.
I know this question is very old but I had the same question as the OP and did some more looking around. I found the following solution:
By adding .andThrow(new AssertionFailedError()).anyTimes();
at the end of your EasyMock declaration the test will fail when the mocked method is called.
The reason this is better than simply not using NiceMock and letting the test fail due to the unmocked method call is because this allows you to specifically test that XYZ method was not called in the given scenario.
I would like to give David Wallace credit for this answer. I found this solution in his answer on the following post: Test that void method didn't get called with EasyMock