Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
NetBeans supports JUnit 3.x and JUnit 4.x.
NetBeans prompts on the first unit test being created for the JUnit version.
NetBeans automatically adds either JUnit 3.x or JUnit 4.x libraries to the classpath.
JUnit 4.x requires Java SE 5 or greater.
JUnit 4.x makes extensive use of annotations.
JUnit 3 and JUnit 4 conventions cannot be mixed in the same unit test case.
Empty JUnit tests are created by choosing File | New File and selecting JUnit Test from the JUnit category.
A JUnit for an existing class can be created by choosing File | New File and selecting Test For Existing Class from the JUnit category.
A test suite for an existing class can be created by choosing File | New File and selecting Test Suite.