Unit Test Assistant can automatically update your project with a container that includes all the required libraries. The libraries will be added to Java Build Path in Eclipse. If you build your projects outside the IDE, configure your build system to ensure that the libraries are available; see Configuring the Build System to Include Required Libraries for details.
Configuring Preferences to Automatically Add Required Libraries
- Configure UTA to always add the required libraries during test creation by enabling the Add automatically option; see Configuring Preferences. The libraries will be added to projects when UTA detects missing dependencies for tests that are being created.
Configure UTA to display a notification that the required libraries are missing by enabling the Always ask for the first time option; see Configuring Preferences. If enabled, UTA will display the notification the first time you create tests for the currently selected project, which allows you to add the libraries to individual projects.
You can enable or disable the Always ask when processing projects for the first time option. If disabled, the dialog will not display when tests are created for projects other than the current selection. This option is enabled by default.UTA will associate your choice with the selected project name. If you click Cancel, the libraries will not be added to the currently selected project and the dialog box will not be displayed again unless the project name is changed.
Automatically Adding Required Libraries Through the UI
- Right-click on a project(s) and select Unit Test Assistant by Parasoft> Add UTA Library. The required libraries will be added to the currently selected project(s).
- Go to the project properties, select Java Build Path> Libraries, click Add Library... and choose Unit Tests Assistant Library from the list.
Click Finish to add the container with the libraries to the project. Clicking Next>will display the libraries included in the container.
Removing Required Libraries from the Project
To remove the libraries from your Eclipse project, go to the project properties and select Java Build Path> Libraries and remove the Unit Tests Assistant Library container: