Testing with Spring and JUnit 5
summary
Coverage of JUnit 5.8→5.9 and Spring testing shows concrete features and demos: the JUnit suite engine included in console launcher and unique-id rerun support, new tempdir cleanup modes, method source accepts Spring-injected args (demo returns beans via Spring context for parameterized tests and it runs), auto-closable parameter arguments, soft assertions for MockMvc/WebTestClient, and the new Open Test Reporting XML. Spring adds nested-test config inheritance, an application-events recorder, improved CSV/text-block sources, and module-path scanning fixes for Maven patched modules.
AI-written summary · about
chapters (15)
- 0:00Intro
- 0:15Sam Brannen
- 0:48JUnit Jupiter Support in Spring
- 1:31Major Features in JUnit Platform 1.8
- 4:23Test Class Execution Order
- 8:46Named API
- 10:00Example: Named Dynamic Tests
- 11:45Small Enhancements in JUnit Jupiter 5.8.x
- 14:44JUnit Platform 1.9 M1
- 17:41JUnit Jupiter 5.9 M1
- 25:50New in Spring Framework 5.3.x (1/2)
- 29:15Tip: Use Text Blocks... Where you can
- 32:09Example: ApplicationEvents
- 35:15Example: MockMvc default response character encoding
- 36:13Testing Enhancements in Spring 6.0








