TestNG aims to provide more flexibility to Java unit testing
Cédric Beust has announced the release of a unit-testing tool for Java, TestNG (Testing, the Next Generation), which combines several features of JUnit and NUnit to provide added functionality:
<ul><li>JSR 175 Annotations</li>
<li>Flexible test configuration</li>
<li>Default JDK functions for runtime and logging (no dependencies)</li>
<li>Powerful execution model (no more TestSuite)</li></ul>Cédric writes: "I have always been confused by JUnit’s Test Suites. Where should the method belong? In the test class? Separately? Should it be static? And if I want to change the tests run, why do I need to rebuild my code? With these changes in mind, I came up with the design principles that are the foundation of TestNG."
Read TestNG’s documentation and download page.
Also take a peek at Robert Watkins’ take on JUnit and TestNG.