From: Alban P. <alb...@fr...> - 2004-02-15 15:24:51
|
Hi, I used some private Mock classes in several projects. I'm refactoring my code to use less private classes. One of these seems useful outside my projects. So this is an helper class Verifiables (which could be part of com.mockobjects.util). The methods verify allow to verify an array or a Collection of Verifiables (like MockObjects for example). I use mostly these methods to verify several MockObjects at the end of a test case : Mock... mock1 = Mock... mock2 = Mock... mock3 = ... Verifiables.verify(new Verifiable[] { mock1, mock2, mock3 }); -- Alban Peignier - alb...@fr... http://www.tryphon.org/~alban |