Version 1.0 of StubOut is now available. StubOut is an extension to JUnit that lets you easily stub out concrete classes for the duration of your tests. This fills a gap in the existing mock object tools, which concentrate on situations where you control the creation of objects. Please see the project website for more information: http://stubout.sf.net/
Most existing Java code was not written to be easily testable, or to facilitate testing of other code that uses it. StubOut is especially helpful when you must use such code. Using StubOut, you can easily replace all or parts of the classes that make unit testing difficult, or that make your tests cover more than just the single class you are trying to test.
The first version of StubOut is now available. StubOut is an extension to JUnit that lets you stub out classes that don't pertain to your test. This is especially useful for dealing with legacy code that wasn't written to be easily testable. Please see the project website for more information: http://stubout.sf.net/