Create Tests Dialog Box
See Also
This dialog box lets you specify the options for generating JUnit test classes
and suites for existing Java classes. You open the dialog box by right-clicking
any Java file, package, or the Source Packages node and choosing Tools >
Create JUnit Tests (Ctrl-Shift-U).
In addition to specifying the location of the generated test classes, you can
specify the following options:
- 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. Specifies whether to generate the following:
- 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. 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.
- See Also
- Creating a JUnit Test
- Running a JUnit Test
- Configuring JUnit
- About JUnit
Legal Notices