New Test For Existing Class Wizard: Existing Class To Test

See Also

The New Test For Existing Class wizard creates a new JUnit test class in the specified test folder. When you create a test for an existing class you specify the class that you want to test and the IDE generates a test class that contains skeleton methods based on the methods in the specified class. You open the New Test For Existing Class wizard by selecting Test for Existing Class in the JUnit category of the New File wizard.

In the Existing Class To Test panel, you set the following properties:

When you click Finish the IDE creates the test class based on the parameters you have specified and opens the class in the editor. The test class then appears in the Projects window in the test folder. The IDE creates the test class under the package-name node

that replicates the package structure of the tested class.
See Also
Creating a JUnit Test
Running a JUnit Test
About JUnit

Legal Notices