IntelliJ IDEA. Migrating from JUnit 4 to JUnit 5

Published: 24 June 2020
on channel: IntelliJ IDEA, a JetBrains IDE
24,358
376

JUnit has been around for a long time, and many applications will have a large number of JUnit tests written using JUnit 4. JUnit 5 was released in 2017, and provides a lot of features that weren't in the previous version. Let's look at how to migrate existing JUnit 4 tests to JUnit 5.

This screencast covers:

- Updating the project's dependencies to run existing JUnit 4 classes on the JUnit 5 platform (via Maven);
- Migrating an individual test from JUnit 4 to JUnit 5 using IntelliJ IDEA's inspections
- Migrating all a project's test using IntelliJ IDEA's migration tool;
- Creating a Find in Path query to identify places that use JUnit 4 features that need to be manually migrated.

Download IntelliJ IDEA: https://jb.gg/download-intellij-idea
Top 15 IntelliJ IDEA shortcuts:    • Top 15 IntelliJ IDEA shortcuts  

*Author: Trisha Gee

Join us:

Website https://jb.gg/website
Blog https://jb.gg/blog
Twitter   / intellijidea  
Facebook   / intellijidea  

#getting_to_know_intellij #intelliJIDEA #intelliJ #JetBrains #Java #Programming


Watch video IntelliJ IDEA. Migrating from JUnit 4 to JUnit 5 online without registration, duration hours minute second in high quality. This video was added by user IntelliJ IDEA, a JetBrains IDE 24 June 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 24,358 once and liked it 376 people.