# Create Tests Dialog Box

Use to specify the options for generating unit test classes and suites for existing Java classes.

Element | Description
--- | ---
Class Name | Specifies the name for the test class. By default the IDE generates a name for the test class that is the fully-qualified class name appended with Test.
Location | Selects a test package from the dropdown list.
Framework | Selects a unit testing framework from the dropdown list.
Method Access Levels | Specifies which methods to generate test methods for.
Class Types | Specifies which class types to generate test classes for. This option is only available when generating tests for multiple classes.
Optional Classes | Specifies whether to generate a test suite or whether to just generate the individual test classes. This option is only available when generating tests for multiple classes.
Generated Code | Generates the selected items: Test Initializer, Test Finalizier, 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 | Specifies whether to create Javadoc comments for the test methods and comments 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.