Friday, August 15, 2003 10:36 AM
Well, first of all, your tests will be somewhat standardized, therefore any programmer who reads your code can read the tests more easily.
Also, with JUnit you can create test fixtures and test suites, which can help you automate tests and make sure every change is ok.(if you don't know what a suite or a fixture is, read it up on JUnit's site.
And, last but not least, these classes are already debugged, work well and has a published, documented and reusable API.
I think the question you should be asking is "Why would I like to reproduceJUnit's API (and debug, test, fix) when it's already there and used by thousands?"