aspose file tools
The moose likes Testing and the fly likes Junit Identifying Test Cases? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Testing
Reply Bookmark "Junit Identifying Test Cases?" Watch "Junit Identifying Test Cases?" New topic
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
    
  66

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Junit Identifying Test Cases?
 
Similar Threads
Application Testing tools and tests
JUnit Testing
eclipse and junit - how to generate report?
How to use dummy values in Junit when values from database are required
WebService testing