To configure bulk creation of unit tests:
Local settings example
jtest.uta.test.class.name.pattern=${package_name}.${class_name}${test_kind}Test
jtest.uta.test.source.folder=${project_name}/tests
jtest.uta.mocking.enabled=true
jtest.uta.mocking.helper.methods=false
jtest.uta.mocking.static.enabled=false
jtest.uta.mocking.static.patterns.exclude=foo.example.*
jtest.uta.mocking.static.patterns.include=foo.example.MyClass.*
jtest.uta.testing.framework=JUnit4
jtest.uta.timeout.enabled=true
jtest.uta.timeout.time=5000
jtest.uta.private.methods=false
jtest.uta.fix.failing.tests.with.ai=true
jtest.uta.test.templates=ParasoftCUSTOM
jtest.uta.test.templates.active=ParasoftCUSTOM
jtest.uta.tests.increase.coverage.only=true |
The Create Unit Tests configuration is available under the Builtin directory in the test configurations list.

To view the test configuration, right-click it, and choose View. Click the Unit Tests tab of the configuration to access controls for unit test execution and coverage data collection.
The following test creation options are available for this test configuration:

Mock initialization - Allows you to specify how you want mocks to be initialized.
- Configure within test method - Initializes mocks by declaring and initializing the object under test and its dependencies within the test method.
- Use @InjectMocks - Initializes mocks by using the @InjectMocks annotation to mark fields on which mock injection should be performed and the @Mock annotation for dependencies. See Configuring Mock Initialization for details.
See Creating Custom Test Configurations for the detailed description of all settings.