From: Alban P. <alb...@fr...> - 2004-02-15 17:33:01
|
Steve Freeman wrote: > How many mocks do you have in your tests? Is it worth collecting them > in an array, rather than just calling verify on them? In some complex test cases, I can use five or six mockobjects. I found usefull to replace the needed lines to verify each one by a single one. > It strikes me that a better alternative for your case might be to have > a VerifiableCollection that accepts Verifiables and then implements > verify() across them. Indeed, A VerifiableCollection can be a smarter solution. This class doesn't seem to exist ? -- Alban Peignier - alb...@fr... http://www.tryphon.org/~alban |