| Author |
Junit Identifying Test Cases?
|
Mat Spiffy
Greenhorn
Joined: Oct 31, 2008
Posts: 7
|
|
Hi All, I am new to Junit. I have read about the basic structure of a class where we write Junit Test Cases. My program does the following methods. 1) Reads a file and generates token based on some delimiter (eg ",") 2) Sorts the token in some order 3) Writes the sorted tokens to a file. Can you give me some direction in writing test cases for such methods? Thanks for your time Best Regards
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26201
|
|
Mat, There's no right or wrong for writing tests which is why you likely aren't getting an answer. You might want to post the method signatures for some more concrete direction.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
 |
|
|
subject: Junit Identifying Test Cases?
|
|
|