File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Unit testing boolean

Mark Quin

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:

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
author & internet detective

Joined: May 26, 2003
Posts: 33117

The JUnit cookbook provides a good getting started for JUnit.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Unit testing boolean
It's not a secret anymore!