A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
Junit Identifying Test Cases?
Joined: Oct 31, 2008
Nov 06, 2008 05:47:00
I am new to
. I have read about the basic structure of a class where we write Junit
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
Joined: May 26, 2003
Nov 12, 2008 09:45:00
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.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
I agree. Here's the link:
subject: Junit Identifying Test Cases?
Application Testing tools and tests
eclipse and junit - how to generate report?
How to use dummy values in Junit when values from database are required
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013