Weird Errors from easymock
Thursday, March 27th, 2008Easymock is a great and easy to use Mock-Framework wich allows simple creation of Mock Objects that can be used in Unit Tests.
But the Error Messages easymock fires are quite strange sometimes…
“java.lang.IllegalStateException: no last call on a mock available”
occured because i expected a method call on a static method
removing the “static” directive solved the problem.