;)Note that it's also easier to reuse such data in other similar projects.
That would be what some of us call a code smell ;)
Yeah it could be even *shooting* in your *own* *foot*.!
It's just so nice to be in the situation when second version of the same project and it just happen that API is very different and you have to put to the garbage all your mock objects :). I do believe that standalone test data is valuable outcome of any project. It just happen that I have (I really regret that) quite big experience
with legacy system written even in different progr. lang without any resuable test data. When you are re-doing the same thing in completly different way
but you have the same input and the same output such data in simply priceless.
Other importand aspect: Mock object/test data inside Java code often results in inclination toward "white box testing".
For a complete software examination, both white box and black box tests are required.
mm
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]