Core concept

@Container
static PostgreSQLContainer pg = new PostgreSQLContainer<>("postgres:16");
Advertisement

How it works

Docker required. Slower than in-memory.

Advertisement

Trade-offs + gotchas

Integration tests. Real DB behavior.