| An ICxFactory is an extension of ImplFactory that has provisions for
cleaning up generated objects on test tear down. Generated objects could
either have a finalize() method (not recommended, especially for tests),
or the factory could implement this interface to allow proper, timely
clean-up.
The clean-up is performed by InterfaceTestCase in the
tearDown() method. If the hierarchy tests do not use this,
but instead use a variation of junit.framework.Test, then
they will need to implement their own tearDown() functionality.
A valid alternative is to use Mock-Objects
(www.mockobjects.org), which would
not need to be cleaned up like "live" objects do.
author: Matt Albrecht groboclown@users.sourceforge.net version: $Date: 2003/02/10 22:52:20 $ since: October 30, 2002 |