Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unit testing boolean

 
Mark Quin
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 34071
331
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark,
The JUnit cookbook provides a good getting started for JUnit.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic