javaeasymock

Mocking a concrete class using EasyMock


Is it possible to mock a concrete class using EaskMock? If so, how do I do it?


Solution

  • See the EasyMock Class Extension documentation and download it from the SourceForge project. You can't mock final methods though.

    EDIT: This is now part of EasyMock for v3 and above, as noted in comments.