Making the Jump to JUnit 5
summary
Migrates JUnit 4 to JUnit 5 by swapping to org.junit.jupiter.api, replacing @RunWith with ExtendWith, and using assertThrows instead of expected exceptions; requires Java 8+ and Spring Boot 2.4+ or Spring 5+, shows converting controller and service tests that use MockMvc and an H2 in‑memory DB, updates annotations to @BeforeEach/@BeforeAll and assertion imports, and demonstrates @ParameterizedTest with @CsvFileSource, expanding the example test suite from 9 to 11 passing tests.
AI-written summary · about
chapters (10)
- 0:00Start
- 0:33Who is Jonathan Meek?
- 1:59Problem at hand
- 2:30Also, we aren't talking about it
- 3:06It's just a dependency swapout, right?
- 3:51Couldn't I just use JUnit Vintage?
- 5:30TL:DR diff Part 2
- 5:58So How Do Upgrade?
- 7:25Other Cool Features of JUnit 5
- 27:11Resources








