JUnit 5 — The New Testing Framework for Java and Platform for the JVM
summary
JUnit 5 is presented as a JUnit Platform + Jupiter + Vintage modular system that runs on Java 8+ and already supports IDEs and build tools; it was crowdfunded for about €50,000 from ~500 backers. Key, concrete features: a launcher/test-engine API, new extension points (lifecycle callbacks, parameter resolution), assertThrows and assertTimeoutPreemptively assertions, constructor/method dependency injection, and parameterized and dynamic tests. Migration via a Vintage engine and demoed code conversions (timeouts, expected-exception to assertThrows) work with current Gradle/Maven/IDE support.
AI-written summary · about
chapters (23)
- 0:00Intro
- 1:03Sam Brannen
- 4:02JUnit 4 Runner API
- 4:15JUnit 4... Rules... are meant to be broken
- 5:08JUnit Lambda-Crowdfunding Campaign
- 6:09Roadmap
- 9:59Launcher API
- 10:49TestEngine API
- 12:53IDEs and Build Tools
- 13:53JUnit Jupiter - Extension Model
- 15:27JUnit Jupiter - Programming Model
- 16:26Annotations
- 17:35JUnit 4 Rule Migration Support
- 18:28Assertions
- 28:48Dependency Injection
- 30:30Conditional Test Execution
- 37:37Interface Default Methods
- 39:35Nested Test Classes
- 42:16Parameterized Tests
- 43:15Argument Conversion
- 46:32Dynamic Tests in Action
- 50:02Spring Support for JUnit Jupiter
- 50:31Spring Resources








