Use to create a new JUnit test class in the specified test folder.
| Element | Description | 
|---|---|
| Class to Test | Locates the class you want to test. | 
| Created Test Class | Specifies the class name of the test. The default name is based on the name of the class you are testing, with Testappended to the name | 
| Project | Specifies the project where the test is located. You cannot change this value. | 
| Location | Specifies the test folder where you want to create the test. The drop-down list contains all folders specified as project test folders. | 
| Created File | Displays the path to the new file. The name of the file is identical to the class name. | 
| Method Access Levels | Generates test skeletons for the following types of methods: Public, Protected, and Package Private. | 
| Public | Generates test skeletons for public member methods. | 
| Protected | Generates test skeletons for protected member methods. | 
| Package Private | Generate test skeletons for default member methods. | 
| Generated Code | Generates the selected items: Test Initializaer, Test Finalizer, and Default Method Bodies. | 
| Test Initializer | Method for tasks like initializing fields, enabling on logging, and resetting environment variables | 
| Test Finalizer. | Method for cleaning up after tests have finished running | 
| Default Method Bodies | Sample test code and instructions for printing out information about test status to the command output. | 
| Generated Comments | Generates the selected items: Javadoc Comments and Source Code Hints | 
| Javadoc Comments | Javadoc comments in the generated code for the test methods. | 
| Source Code Hints | Hints in the generated code that suggest how to implement the test methods. | 
Related Topics
Developing Applications with NetBeans IDE,
| Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |