Options Window: JUnit Module Settings
See Also
The JUnit Module Settings enable you to customize the process of test generation.
You can access the JUnit Module Settings by choosing Tools > Options from the main menu and then clicking Advanced Options in the Options window.
In the left pane, choose Testing > JUnit Tests.
General Properties
- Generate Comments in Test Method Bodies. If selected, the generated test bodies include simple hints.
- Generate Default Bodies of Test Methods. If selected, the generated test bodies contain code for printing the name of the function and the message The test case is empty if the test fails. If unselected, the test bodies are empty.�
- Include Abstract Classes. If selected, abstract classes are included for test generation. If unselected, abstract classes are skipped.
- Generate Test Class Initializer.
- Generate Test Class Finalizer.
- Include Exception Classes. If selected, exception classes (classes that implementing java.lang.Throwable) are included for test generation. If unselected, exception classes are skipped.
- Generate Test Initializer. If selected, the setUp method or @Before is generated and is used to set up the test environment before each test.
- Generate Test Suite Classes. If selected, suite classes for each package are generated. The suite classes contain tests from the individual packages as well as suites from subpackages (if applicable).
- Generate Test Test Finalizer If selected, the tearDown method or @After is generated to remove the test environment after each test is run and therefore prevents side effects from occurring in your tests.
- Test Skeleton Generator. Select the JUnit platform from the drop-down list.
- Include Package Private Classes. If selected, classes with package private (default) access are included for test generation. If unselected, package private classes are skipped.
- Generate JavaDoc Comments. If selected, every test method contains a simple JavaDoc comment.
- Generate Tests for Default Member Methods. If selected, test methods are generated for methods with default (package private or just package) member access.
- Generate Tests for Protected Member Methods. If selected, test methods are generated for methods with protected member access.
- Generate Tests for Public Member Methods. If selected, test methods are generated for methods with public member access.
Expert Properties
- Generate main Method. If selected, a main method is generated for the classes (both tests and suites). The body of the method can be specified in the setting described above.
- Body of the main Method. Code to appear in the generated main method. Click the ellipsis button (...) to open the property editor and edit the code.
- Root Suite Class Name. String used as the name of the root suite class. A root suite class is created for the root package (/), which does not have any name.
- See Also
- Using the Options Window
Legal Notices