Related posts to matchers expected
For me this failure in my case 2 matchers expected, 4 recorded. meant “you are mixing easymock and mockito in the same unit test, so accidentally calling .
Unfortunately, you will get something like that java.lang.IllegalStateException 2 matchers expected, 1 recorded. at org.easymock.internal..
You ‘ll get an error to the nature of “1 matcher expected, 2 recorded”. make sure you aren ‘t improperly creating matchers that don ‘t get used..
EasyMock is a Java dynamic mocking framework that allows you to record expected behavior of mock objects, play them back, and finally verify .