Helping ordinary people create extraordinary websites!

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:

First Published on IBM DeveloperWorks


 2 Votes

You might also want to check these out:


Leave a Comment on "TestNG Makes Java Unit Testing a Breeze"
You must be logged in to post a comment.

Link to This Tutorial Page!


GET OUR NEWSLETTERS