Test Case wizard

This is a feature of JBuilder Enterprise.

The Test Case wizard generates a skeleton TestCase class for unit testing a class in your project. The skeleton includes setUp() and tearDown() methods and skeleton test methods for methods you select. You provide the implementation details. For more information, see "The Test Case wizard" in Building Applications with JBuilder. For a tutorial that shows you how to use the Test Case wizard to create a test case, see "Tutorial: Creating and running test cases and test suites."

Select Methods To Test

This is a feature of JBuilder Enterprise.

Select Class

Used to specify the class you want to test. If a .java file is currently open in the editor when the wizard is started, this file will be the default. Click the ellipsis button to select a class.

Available Methods

The Available Methods tree displays the methods available for testing in the selected class and its inherited classes. Click the plus sign next to a class name to open that node of the tree and see the methods of the class. The wizard generates test methods for any method(s) selected in the the tree. Multiple methods may be selected.

Specify Test Case Details

This is a feature of JBuilder Enterprise.

This step lets you set the class, package, and inheritance information for the new test case.

Package

Used to enter the name of the package to which the test case belongs. The default is the current package.

Class Name

Used to enter the class name for the test case class. The default is a prefix of "Test" followed by the name of the class under test.

Base Class

Indicates the fully qualified name of the parent class for the test case. The default is junit.framework.TestCase.

Select Test Fixtures

This is a feature of JBuilder Enterprise.

This step lets you specify the fixtures to be used in the new test case. The list shows the currently selected test fixtures, if any. Use the Add and Remove buttons to add and remove fixtures from the list. The Remove button is not enabled until you have selected one or more fixtures to be removed. Use the Move Up and Move Down buttons to indicate the order in which the fixtures will be applied.

Define A Test Configuration

This is a feature of JBuilder Enterprise.

This step allows you to create a new runtime configuration to use for running the new test case.

Create A Runtime Configuration

Indicates whether to create a new runtime configuration for running the test case.

Configuration Name

Indicates the name for the new runtime configuration. The default is the same as the test case name. This field is only enabled if Create A Runtime Configuration is checked.

Test Runner

Indicates the test runner to use with the new runtime configuration. The default is JBTestRunner. The possible choices are JBTestRunner, JUnit TextUI, and JUnit SwingUI.