Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space ENGINES1031 and version 10.3.3

In this section:

Table of Contents
maxLevel1

Adding the Required Libraries Through the UI

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

...

If the dependencies are missing, UTA displays the following notification the first time you create tests for the currently selected project

...

:

Image Added

Click Add Libraries to automatically add all the required libraries to all projects that are currently selected in Eclipse.

Info

The libraries automatically added through the UI will only be available in Eclipse. Ensure that they do not conflict with your existing build configuration.

If you click Skip Libraries, UTA will generate tests without adding the required libraries your project.

By default, UTA displays the notification once per project. Select the Do not show this message for other projects in this workspace option to disable displaying the notification for projects other than your current selection.

Alternatively, you can add the container with the required libraries to an individual project in one of the following ways:

Info

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.

...

  • Right-click on a project(s) and select Unit Testing> 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 Test 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 the 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 Test Assistant Library container:

...