Test Generation

The test generator creates compilable test classes, which are skeletons for your unit tests. Test skeletons are generated according to tested classes. The process of generation can be custmized by changing the configuration of the unit test generator. Generated skeletons are runnable by the JUnit framework.

Generation of Skeletons

Test skeletons are created for the chosen class or package. The generator creates skeletons for all classes in the package, based on the rules set in the Create Tests dialog box. If any of the test classes already exist, those classes are updated if necessary. Test classes are stored in the filesystem that was selected as a target filesystem for the tests. The generated test classes are compilable and runable.

Configuration of the JUnit Test Generator

You can configure the test generator in the Create Tests dialog box. You can set the target filesystem, templates, and code generation rules. The following describes the different parts of the Create Tests dialog box:

Note All settings that you change in this dialog box remain in effect until you change them again, either in this dialog box or in the JUnit Module Settings.

Legal Notices