New JUnit Test Wizard: Name and Location

Use to create a new empty JUnit test class in the specified test folder.

Element Description

Class Name

Specifies the class name of the test suite. The IDE names the class NewEmptyJUnitTest 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: Test Initializer and Test Finalizer.

    Test Initializer

Generates a method for tasks like initializing fields, enabling on logging, and resetting environment variables.

    Test Finalizer

Generates a 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.


Related Topics

Developing Applications with NetBeans IDE,

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