Is it possible to mock a concrete class using EaskMock? If so, how do I do it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.