# New JUnit Test Suite Wizard: Name and Location

Use to create a new empty JUnit test suite in the specified test folder. A JUnit 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.

Element | Description
--- | ---
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 | Generates the selected items: Test Initializer and Test Finalizer.
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 | Generates the selected item: Source Code Hints.
Source Code Hints | Hints 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.

Related Topics

Developing Applications with NetBeans IDE,

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.