Migrating from the JUnit 4 to the JUnit 5 Testing Platform

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.
Course info
Level
Intermediate
Updated
Jul 16, 2020
Duration
1h 40m
Table of contents
Description
Course info
Level
Intermediate
Updated
Jul 16, 2020
Duration
1h 40m
Description

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
About the author

Born in Pitesti, Romania, I have studied Computer Science in Bucharest, graduating in 1997 and obtaining a PhD in 2006. I have taught at University "Politehnica" Bucuresti and I have been involved in the software development industry. I am currently conducting/developing Java and Web courses inside the Luxoft company.

More from the author
Implementing a Test Pyramid Strategy in Java
Intermediate
1h 54m
Apr 19, 2019
More courses by Catalin Tudose
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hello, everyone. My name is Catalin Tudose, and welcome to my Migrating from the JUnit 4 to the JUnit 5 Testing Platform course. I am a Java and web technologies expert at Luxoft Romania, and I have more than 20 years of experience in the IT field. More than 15 of them have been dedicated to Java and to the technologies around it. There is a large amount of JUnit 4 tests already written for present‑day applications. JUnit 5 comes with a new architecture, a new approach, and many new capabilities and annotations. Developers that would like to adopt JUnit 5 in their projects and benefit from its advantages can now do it instantly by following a migration part and clear migration steps while JUnit 4 and JUnit 5 may coexist. The main topics that we are going to approach will be the step from JUnit 4 to JUnit 5, effectively migrating the unit testing level from JUnit 4 to JUnit 5, effectively migrating the integration testing level from JUnit 4 to JUnit 5, effectively migrating the system testing level from JUnit 4 to JUnit 5, and effectively migrating the acceptance testing level from JUnit 4 to JUnit 5. By the end of this course, you'll know how to easily migrate the JUnit 4 tests to JUnit 5 tests and how to replace the dependencies, annotations, assertions, assumptions, classes, methods, rules ,and runners. You'll also know when it is still appropriate to adopt a hybrid solution. Before beginning the course, you should be familiar with object‑oriented programming concepts, be proficient in writing Java Core code, and have a basic knowledge of the Apache Maven build tool and unit testing principles. I hope you'll join me on this journey to learn the path from JUnit 4 to JUnit 5 with the Migrating from the JUnit 4 to the JUnit 5 Testing Platform course at Pluralsight.