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.
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.
Table of contents
- Version Checks 0m
- Introducing the Migration Problems between JUnit 4 and JUnit 5 6m
- Replacing the Needed Dependencies 4m
- Equivalent Classes, Annotations, and Methods 7m
- Moving from Categories to Tags 6m
- Migrating the Hamcrest Matcher Functionality 3m
- Migrating the JUnit 4 Rules 5m
- Migrating the Custom Rules 6m