O'Reilly logo

NetBeans IDE 8 Cookbook by Rhawi Dantas, David Salter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a TestNG unit test

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.

Getting ready

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.

How to do it…

Ensure the Calculator project is open within NetBeans. Perform the following steps to complete this recipe:

  1. Right-click on the Test Packages node within the Projects explorer and select New and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required