Migrate Junit 4 To Junit 5 Assertions Using Branch By Abstraction

Опубликовано: 30 Сентябрь 2024
на канале: EvilTester - Software Testing
1,283
20

I didn't see any tutorials showing how to migrate from Junit 4 to Junit 5 using Abstractions, they all showed line by line amendments. I think a Branch By Abstraction approach might make it easier, and then use inline refactoring to finish.

- a quick overview of JUnit 5
- differences between Junit 5 and JUnit 4
- creating an abstraction layer for JUnit 4 assertions
- delegating to JUnit 5 within the abstraction layer
- using the JUnit 5 vintage engine for backwards compatibility
- IntelliJ inline refactoring to change code
- Introduction to AssertJ

If you are interested in Java then check out my site http://javafortesters.com

And my book "Java For Testers":

https://compendiumdev.co.uk/page/java...

---

You can support me on Patreon   / eviltester   (and receive extra content)

Hire me for consultancy and buy my online books and training at:

- https://compendiumdev.co.uk
- http://eviltester.com
- http://seleniumsimplified.com
- http://javafortesters.com