EasyMock unclear error: "expected: 1, actual: 1"

Viewed 3819

I got fail of test with

java.lang.AssertionError: 
  Expectation failure on verify:
    A.logon(null): expected: 1, actual: 1
    at org.easymock.internal.MocksControl.verify(MocksControl.java:226)
    at org.easymock.EasyMock.verify(EasyMock.java:2080)
    at com.ATest.test

What this error means? Why it may happen? Please suggest.

4 Answers
Related