TestNG is another popular Java testing framework that was inspired by early versions of JUnit that did not use annotations. TestNG is described as more powerful and easier to use than JUnit. For more details about this, check out the project's home page at http://testng.org.
To complete this recipe, you'll need the sample project we created in the earlier recipe, Creating a JUnit test suite. If you have not completed that recipe, the project is available as part of the code download bundle for the book.
Calculator project is open within NetBeans. Perform the following steps to complete this recipe: