Practical TDD for Java – Environment Setup

This document lists the software participants must have on their development systems to work through the hands-on exercises for the Practical Test-Driven Development for Java courses (both the in-person version and the web-delivered version).

Using your existing Java development environment

  • Java 1.8 SDK – can be Oracle or OpenJDK
  • Java-aware IDE or text editor of your choice
  • Maven – latest 3.x version
  • Git client of your choice
  • Internet access permissions to use Github and Google Hangout (if you are on a corporate network that usually blocks these sites)

If you run mvn install for the downloaded class projects, it will install the following components in addition to those listed above. If your existing development environment does not already have these, and you choose not to use maven to initialize the class projects, then please be sure to install the following:

  • JUnit unit testing framework, version 4.12 or higher
  • Mockito mocking library for Java

Web-delivered version only: You will also need an email address we can use to invite you to the Google Hangout session for the class.

Using a virtual machine

If you don’t have a usable Java development environment, or you prefer to set up a separate environment for the class, then you can configure a virtual machine with a suitable environment using this github project: https://github.com/neopragma/provision-ubuntu-16.04-javatrain.

The script assumes you have created a virtual machine and installed Ubuntu Desktop 16.04 (64bit) on the virtual machine. You also have to install git on the virtual machine. Then you can clone the repository and run the setup script to configure the environment. It will install OpenJDK 8, Maven, and Eclipse Mars. If you prefer, you can provision a physical computer using the same script.

If you have questions or difficulties configuring an environment for the class, please contact us at admin@neopragma.com.