JUnit 5

Опубликовано: 10 Март 2025
на канале: MVP Java
4,869
35

Provides an overview on what JUnit 5 has new to offer. Compares the new architecture to that of JUnit 4, shows you how to run both JUnit 4 & 5 tests together and covers the basic annotations and assertions you will need to get you up and running JUnit 5 tests.

I'll show you how to extend JUnit 5 with the @ExtendsWith annaotation, use Nested and Tagged tests as well as Dependency Injecting Parameters into you @Test method parameters (via Parameter Resolver).

The tutorial GitHub project has been updated to the JUnit 5 M4 release which came out ion April 1, 2017.Although the tutorial was published when the M1 release was only available, everything in here still applies (only exception being expectThrows method is deprecated in favor of assertThrows).

06:23 Skips right to the Tests part of the tutorial

watch the tutorial here ...
Title: JUnit 5 (Sneak Peek)
video link:    • JUnit 5  

==========================================
Subscribe to MVP Java ...
https://www.youtube.com/c/MVPJava?sub...

Follow me ...
Website: http://www.mvpjava.com
Google+ : http://bit.ly/1Jsnnfj
Facebook:   / mvpjava  
Twitter :   / mvpjava  
GitHub Project : https://github.com/mvpjava/JUnit5-tut...