${class_name}
- uses the name of the tested class${package_name}
- uses the name of the package that includes the tested class${source_folder}
- uses the name of the folder that contains the source files of the project${project_name}
- uses the name of the project that includes the tested class${test_kind}
- uses the name of the test type, which allows you to separate regular tests from parameterized test casesSelect the framework for creating parameterized unit tests. JUnitParams is selected by default.
If JUnitParams is selected, you can click Parameterization Settings to configure input data for creating parameterized test cases with the Add test case(s) option (see Creating a Parameterized Unit Test).
You can customize the default list of values by selecting a data type from the Select type drop-down menu and adding, editing or removing the values in the list. The Find field allows you to conveniently search for a particular value.
If you use the JUnitParams framework, ensure that the JUnitParams library is added to your Eclipse project. |
Enable or disable the test creation options:
Generate sample assertions - If enabled, UTA will automatically generate assertion templates when a test case is created. Assertions will be created as comments in code; see Creating a Basic Unit Test for details.
Use helper methods for mocks - If enabled, generated tests classes will separate regular test methods from helper methods that prepare objects but do not make assertions.
Specify which recommendations you want UTA to display after test execution.
Additional threads - detects side threads, which may impact the state of your test.
Assertions for inaccessible fields - detects inaccessible fields that have been modified during execution and generates assertion templates.
Files created - detects files that were created during the test run, but were not removed after execution.
Mockable invocations - detects calls to mock objects that can be modified to ensure proper test isolation.
No assertions - detects when no assertions have been made.
Static fields changed - detects when static fields have been modified during test execution.
System properties changed - detects system properties that were modified during the test run, but not restored after execution.
See Executing Unit Tests with Unit Test Assistant for examples of recommendations displayed by UTA.
You can restore the default settings by clicking the Restore Defaults button.