Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Pluralsight

Unit Testing Legacy Code in Java SE 8

via Pluralsight

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Sick of untested code being too difficult and risky? Master techniques to get existing code under test as you work on it without having to rewrite or redesign.

One of the biggest challenges developers encounter in their career is having to maintain an existing codebase with little or no tests and unclear, tangled code. In this course, Unit Testing Legacy Code in Java, you will learn techniques to get a legacy and untested Java application, a small but realistic Java application to provide services to a hospital emergency room, under test incrementally as you work on it. First, you will learn about different types of tests and test doubles that can be applied to create a safety net for the application gradually. Next, you will discover crucial dependency-breaking techniques that will allow you to create seams to provide test doubles without disrupting the code. Finally, you will explore ways to deal with hard to understand code, improving the clarity as you work, and techniques to leverage new, tested code from hard to understand code. When you are finished with this course, you will have the knowledge to efficiently handle untested systems you’ve become responsible for.

Syllabus

  • Course Overview 1min
  • Introducing Our Legacy System 10mins
  • Understanding the Role of Different Types of Tests 22mins
  • Testing Code with Problematic Dependencies 47mins
  • Testing Hard to Understand Code 35mins
  • Expanding Your Skills 10mins

Taught by

Jim Weaver

Reviews

4.7 rating at Pluralsight based on 59 ratings

Start your review of Unit Testing Legacy Code in Java SE 8

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.