Introduction

Unit Test Assistant can automatically update your project with a container that includes all the required libraries. The libraries will only be added to Java Build Path in the IDE. 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.

The automatically added container includes JUnit 5 libraries that may impact test execution in IDEs that do not support JUnit 5. We recommend using this feature in IDEs that offer full JUnit 5 support.

Adding the Required Libraries Through the UI

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

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

The libraries automatically added through the UI will only be available in the IDE. 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(s) in one of the following ways:

  • 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.

    Clicking Next >will display the libraries included in the container. Click Finish to add the container with the libraries to the project. 

Removing the Required Libraries from the Project

To remove the libraries from your the project in your IDE, go to the project properties and select Java Build Path> Libraries and remove the Unit Test Assistant Library container:

  • No labels