Chapter 2. Automating JUnit Tests

In this chapter, you will be introduced to the concept of Extreme Programming (XP), Continuous Integration (CI), the benefits of CI, and JUnit test automation using various tools.

The following topics will be covered in this chapter:

  • CI
  • Gradle automation
  • Maven project management
  • Ant
  • Jenkins

Continuous Integration

In college, I was working on a critical steganography (image watermarking) project and simultaneously developing a module on my home computer, where I integrated my changes with other changes on the college server. Most of my time was wasted in integration. After manual integration, I would find everything broken; so, integration was terrifying.

When CI is not available, development teams or developers make changes ...

Get Mastering Unit Testing Using Mockito and JUnit now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.