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

Creating mock objects in JUnit testing

Jean Miles
Ranch Hand

Joined: Aug 20, 2003
Posts: 53
I am interested what is the best way to create mock objects and use them in JUnit testing. I would like to use ANT to run the JUnit tests, does book cover automating test cases???
Vincent Massol
Author
Ranch Hand

Joined: Aug 09, 2003
Posts: 70
Originally posted by Jean Miles:
I am interested what is the best way to create mock objects and use them in JUnit testing. I would like to use ANT to run the JUnit tests, does book cover automating test cases???

Yep. There are about 6 chapters covering mock objects. Chapter 5 explains how to automate JUnit tests using Ant, Maven and Eclipse. Then, there are at least 3 chapters showing it in action on different projects.
-Vincent


-Vincent<br /><a href="http://www.manning.com/massol" target="_blank" rel="nofollow">JUnit in Action</a> author
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Creating mock objects in JUnit testing
 
Similar Threads
JUnit in Action questions
Testing JSP
Junit
Object Oriented Testing
Why Mock Approach Testing Taken over traditional Junit Testing