Helping ordinary people create extraordinary websites!
HOME TUTORIALS SCRIPTS WEB HOSTING BLOG FORUM
Get Our Newsletter
Your Email:

TestNG Makes Java Unit Testing a Breeze

By Filippo Diotalevi
2005-03-22


Resources

Click the Code icon at the top or bottom of this article to download j-testng-sample.zip, the code discussed in this article.

Download TestNG at the project's Web site.

• You'll need to download the Jakarta Commons Lang library to run this article's code.

• If you're unfamiliar with Java annotations, check out Brett McLaughlin's two-part developerWorks series on the subject from September 2004:
Part 1: Add metadata to Java codePart 2: Custom annotations

• You can download JUnit at JUnit.org

• "Incremental development with Ant and JUnit," Malcolm Davis (developerWorks, November 2000) is a good article explaining how JUnit can be integrated into your projects.

• Eric Allen and Roy Miller both covered unit testing frequently in their respective columns, Diagnosing Java code and Demystifying Extreme Programming.

Testdriven.com is a comprehensive collection of articles and resources about test-driven development.

• Learn more about various open source testing tools.

• Learn more about "Unit testing with mock objects," Alexander Day Chaffee and William Pietri (developerWorks, November 2002).

• A lot of ideas about JUnit, unit testing, and TestNG are recorded on Cedric Beust's blog.

• Are you test infected? Find out the meaning of this term.

• Visit the Developer Bookstore for a comprehensive listing of technical books, including hundreds of Java-related titles.

Download
 

Name Size Download method
j-testng-sample.zip FTP


Information about download methods

Tutorial Pages:
» Try this testing framework for its advances over JUnit
» About the code
» TestNG quickstart
» Defining test groups
» Configuration methods
» Exception checking
» Wrapping up
» Resources


First Published on IBM DeveloperWorks


 | Bookmark
Related Tutorials:
» All about JAXP, Part 1
» Make Database Queries Without the Database
» Load List Values for Improved Efficiency
» 2 Ways To Implement Session Tracking
» A Simple Way to Read an XML File in Java
» Develop Aspect-Oriented Java Applications with Eclipse and AJDT