Welcome to JUnit 5
summary
JUnit 5 (released Sept; baseline Java 8) modernizes testing with a Jupiter programming model, modular jars (vintage, platform, jupiter), and full backward compatibility so existing JUnit 4 suites run without rewriting. Key, practical features demonstrated: assertThrows and assertAll with lambdas, constructor/method injection and programmatic extensions (replace RunWith/Rules), richer parameterized tests (methodSource, CSV, externalized providers, argument aggregators), Testcontainers + Spring Boot demos, and Maven/Gradle tooling notes (Surefire/Failsafe config, Surefire 2.21+, Gradle 4.6+).
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:03Break
- 5:00Advantages of automated testing
- 6:46Why JUnit 5
- 8:40Extension Points
- 10:28Modules
- 12:11Testing
- 14:38Writing Tests
- 20:28Dependency Injection
- 34:06Test Interfaces
- 37:56Filtering Disabling Tests
- 45:21Tool Support
related talks
48mJUnit 5: New Opportunities for Testing on the JVM
44mJUnit 5: The Next Step in Automated Testing for Java
01h 06mJUnit 5 — New Opportunities for Testing on the JVM
51mJUnit 5: what's new and what's coming
51mJUnit 5
51mJUnit 5 — The New Testing Framework for Java and Platform for the JVM
59mJUnit 5 - State of the Union
48mDeep Dive into JUnit 5
