JUnit 5
summary
JUnit 5 splits testing into a Jupiter API for writing tests, a platform/launcher for discovery, and engines like the vintage engine to run legacy JUnit4 code; assertions change (failure message comes last, new assertThrows) and annotations rename to clearer names like @BeforeAll/@BeforeEach and @Disabled. Extensions register via @ExtendWith to provide parameter resolution (example: inject a temporary Path and clean it up), conditional test execution, nested and dynamic tests, tags, and Gradle/Maven/IDE support; roadmap targets parameterized and repeated tests in M4 and Java 9 compatibility next.
AI-written summary · about
chapters (6)
- 0:00Start
- 15:52Meta Annotations
- 29:59Test Execution
- 31:05Compatibility
- 45:56Getting Started
- 46:20Wanted: Feedback!
related talks
48mJUnit 5: New Opportunities for Testing on the JVM
01h 06mJUnit 5 — New Opportunities for Testing on the JVM
51mJUnit 5 — The New Testing Framework for Java and Platform for the JVM
48mDeep Dive into JUnit 5
51mWelcome to JUnit 5
07mJUnit 5
01h 05mJava Testing Part 1: JUnit Jupiter and AssertJ
51mJUnit 5: what's new and what's coming
