wood burning stoves 2.0*
The moose likes Testing and the fly likes Unit testing boolean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Unit testing boolean" Watch "Unit testing boolean" New topic
Author

Unit testing boolean

Mark Quin
Greenhorn

Joined: Oct 21, 2007
Posts: 15
In class we are doing unit testing. Except I am having a lot of trouble trying to get anything to work.

For example we would get something like:
MyString.java:


Then we are suppose to test for errors and try and break it. By, making an input then checking to see what value is returned to see if there is an error.

Are there any good tutorials to follow on how to do unit testing because I am very lost? Especially simple ones that I can follow along and understand.
[ January 24, 2008: Message edited by: Mark Quin ]
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

Mark,
The JUnit cookbook provides a good getting started for JUnit.


[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: Unit testing boolean
 
Similar Threads
Why "539" and not "1"?
what will "01234".substring(2,2)?
Confusion about indexOf method
String Problem
Code explaination