Spring Boot @DataJpaTest and Kotest Testcontainers: Choosing Between Embedded H2 and Containerized PostgreSQL for Integration Tests
When writing integration tests for a Kotlin‑based Spring Boot application, the goal is to validate data‑access logic without requiring production database credentials. The Spring Boot @DataJpaTest slice automatically configures an in‑memory H2 database, which satisfies the credential‑free requirement but may not fully emulate the behavior of a production Pos