Thank you, bryna! Good advice! I got it! Regards Junjie
2008/6/20 Bryan Pendleton <[EMAIL PROTECTED]>: > ----Besides, I have another question: >> Where to put unit test codes for the unit test itself? When I do >> this converting, I have a trouble in doing unit testing for my new test >> case. So far, I just put the testing codes in the same class file, then >> delete all of them before submit. It is not so smart. How should we deal >> with this problem? >> > > We don't generally write such code, so we don't have many patterns for > this. > In general, once a unit test has been carefully reviewed and submitted, > we have automatic processes that routinely run the unit test, and if it > fails, we examine the failure. > > But we generally don't have tests for the test code itself, other than > running the test routinely and examining the results. > > thanks, > > bryan >
