aspose file tools
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

Win a copy of The Software Craftsman this week in the Agile forum!
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: 31668

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]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Have you tried LearnNowOnline?
subject: Unit testing boolean