TestNG versus JUnit summary

There are many other differences between those two frameworks. For brevity, we do not cover all of them in this book. Consult their documentation for further information.

More information about JUnit and TestNG can be found at http://junit.org/ and http://testng.org/.

TestNG provides more features and is more advanced than JUnit. We'll work with TestNG throughout this chapter, and you'll get to know it better. One thing that you'll notice is that we won't use any of those advanced features. The reason is that, with TDD, we rarely need them when working with unit tests. Functional and integration tests are of a different kind and would serve as a better demonstration of TestNG's superiority. However, there are ...

Get Test-Driven Java Development - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.