New Test Suite Wizard: Name and Location
See Also
The New Test Suite wizard creates a new empty JUnit test suite in the specified test folder.
A test suite is basically a class with a method that invokes the specified test cases, such as specific test classes, test methods in test classes and other test suites.
You open the New Test Suite wizard by selecting Test Suite in the JUnit category of the New File wizard.
In the Name and Location panel, you set the following properties:
- Class Name. Specifies the class name of the test suite.
The IDE names the class
NewTestSuite
by default.
- Project. Specifies the project where the test suite is located. You cannot change this value.
- Location. Specifies the test folder where you want to create the test suite.
The drop-down list contains all folders specified as project test folders.
- Package. Specifies the package in the test folder where you want to store the test suite file.
Select a package from the drop down list or create a new package by typing in a new package name.
- Created File. Displays the path to the new file. The name of the file is identical to the class name.
- Generated Code. Select the checkbox if you want the IDE 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.
- Generated Comments. Select the checkbox if you want the IDE to generate the following:
- Source Code Hints. Comments in the generated code that suggest how to implement the test methods.
When you click Finish the IDE creates the test suite class based on the parameters you have specified and opens the class in the editor.
The test suite class then appears in the Projects window under the package-name node in the test folder .
- See Also
- Creating a JUnit Test
- Running a JUnit Test
- About JUnit
Legal Notices