Adam Bien's Weblog
Mocking Without Interfaces [Screencast]
There is a common misconception about mandatory interfaces for easy unit testing and mocking. This myth causes a lot of plumbing in Java EE projects. This screencast shows how to mock classes directly--without any interfaces:
See also other screencasts at: http://tv.adam-bien.com or subscribe to http://www.youtube.com/user/bienadam.
Posted at 05:04PM Jul 26, 2012 by Adam Bien in Real World Java EE Patterns - Rethinking Best Practices | Comments[1] | Views/Hits: 4465
NEW Java EE 7 Workshops: July 22nd-26th, 2013, Airport Munich
A book about rethinking Java EE Patterns
Tweet Follow @AdamBien

I use Mockite since 1 year now and I am very happy with it. Unfortunately Mockito cannot mock final classes and methods. Powermock is supposed to be able to mock final classes and methods but I did not try it out yet so I do not know if it has any additional drawbacks.
Posted by Christian on July 27, 2012 at 10:00 AM CEST #