How to Mock a thirdparty final class
Posted by Mike Haller
on Friday, March 2. 2007
at 17:45
in Java
Thirdparty - you dont have access to the source code and can let the class implement an interface.Final - you cannot use JMock or EasyMock Feature using CGLIB to manipulate the class.
So, what can you do to mock (simulate) the thirdparty class in your application?
