Expanded Library

Migrating from the JUnit 4 to the JUnit 5 Testing Platform

by Catalin Tudose

This course examines the principles and practice of migrating the tests of a Java application from JUnit 4 to JUnit 5. This course will teach you how to make the migration in a systematic and organized way, addressing all testing levels.

What you'll learn

There are a large amount of JUnit 4 tests written for present-day applications, but migrating to the latest version, JUnit 5, comes with many new features and annotations to utilize. In this course, Migrating from the JUnit 4 to the JUnit 5 Testing Platform, you’ll learn to move your JUnit tests from version 4, taking the advantages of the capabilities of version 5. First, you’ll explore the automated testing principles and concepts. Next, you’ll discover how to make the step from JUnit 4 to JUnit 5. Finally, you’ll learn how to move your tests to JUnit 5 at all levels (unit, integration, system, acceptance). When you’re finished with this course, you’ll have the skills and knowledge of the effective migration from JUnit 4 to JUnit 5 needed to move the existing applications to the version 5 approach of the JUnit framework.

About the author

Born in Pitesti, Romania, I have studied Computer Science in Bucharest, graduating in 1997 and obtaining a PhD in 2006, with the thesis "Spatial Databases for the Reconstruction of the Relief". I have taught at University "Politehnica" Bucuresti courses and seminaries on Analysis of Algorithms, Computer Graphics, Logic Design and Databases Design. I have been involved in the software development industry, working since the end of the '90s and being focused on Java and Java technologies since the... more

Ready to upskill? Get started