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?

About

My name is Mike Haller and I'm a software developer and architect at Bosch Software Innovations in Germany. I love programming, playing games and reading books. I like good food, making photos and learning and mentoring about the craftsmanship of commercial software development. Stack Overflow profile for mhaller

Quicksearch