Issue
I am new to EasyMock and junit and running one of tests in eclipse and I see this error: Unexpected method call LdapStudentDAO.findStudentRoles("FLF",[03]): in failure trace. I am not sure what this mean. Thank you.
Solution
Please always provide a full example when asking a question. That way we can answer more accurately.
The message means the method findStudentRoles
with parameters "FLF"
and [03]
of a mock of LdapStudentDAO
was called and this call wasn't expected by the mock.
Depending on the recording, the method entirely or the the parameters are not matching any recording. Thus this error.
Answered By - Henri