The unknowns of JUnit 5
summary
Shows concrete JUnit 5 tricks: replace multiple similar tests with ParameterizedTest using MethodSource or @CsvSource plus text blocks and custom delimiters to make data-table style cases, use records for type-safe arguments and the name placeholder/displayName to print business-friendly row descriptions, write an Extension implementing BeforeAll/BeforeEach/AfterAll and ParameterResolver injection to avoid base test classes (example: WireMock server), and toggle parallel execution via junit-platform.properties and ExecutionMode with a custom @ParallelizableTest wrapper.
AI-written summary · about
chapters (6)
- 0:00Introduction to JUnit 5 unknowns
- 2:51Advanced parameterized tests
- 15:56Avoiding test inheritance
- 27:18Testing comparable contracts
- 31:15Pragmatic test parallelization
- 40:30Closing and resources








