I have a piece of code in unit test,
ClassToBeMocked mock = createMock(ClassToBeMocked.class);
But when I run the test, instead of thinking about the wait, callMethod () is actually called. Am I doing something wrong?
I am new to EasyMock or some mocking structure and am locked due to this issue. Any help would be greatly appreciated.
Thanks AndyS
unit-testing mocking easymock
AndyT
source share