The evolution of integration testing within Spring and Quarkus
summary
History of integration testing moves from embedded databases (fragile, JVM-version and dependency clashes) to containerized lifecycle management with Testcontainers (about 5 years of uptake) using Neo4j as a concrete example. Demonstrates a Testcontainers module for Neo4j, shows programmatic image selection to test a matrix of DB and driver versions, and uses the reuse flag to drop startup from about a minute to milliseconds. Contrasts Quarkus DevServices auto-starting containers for live coding with Spring Boot 3.1+ explicit @ServiceConnection / ConnectionDetails integration and cloud Testcontainers for CI.
AI-written summary · about
chapters (16)
- 0:00Introduction and context
- 1:11Mocking vs integration testing
- 3:38Evolution of testing in Java
- 7:15Memory lane of shared test servers
- 9:27Module path compatibility issues
- 10:32Embedded testing pros and cons
- 13:39Demo of embedded testing failures
- 18:43Testcontainers to the rescue
- 25:10Library developer benefits
- 26:38Quarkus introduction and features
- 29:34Quarkus developer services demo
- 33:12Quarkus programmatic approach
- 34:13Spring Boot 3.3 improvements
- 35:39Spring Boot service connection demo
- 39:16Developer joy with test services
- 41:29Recap and ecosystem respect
