~/talk

Integration and end-to-end testing with TestContainers and JUnit 5

links:none on file
slides:none on file

TestContainers runs real Postgres and Redis inside throwaway Docker containers, integrates with JUnit 5, and binds container lifecycles to tests so ports are randomized and containers are cleaned by a Ryuk cleanup container. Demo code shows a Spring Boot user service with Postgres container model and an item service using Redis; a five-container end-to-end setup (including Eureka) boots in about a minute, passes assertions that data flows between services, then tears down with no leftover containers.

AI-written summary · about

  1. 0:00Intro
  2. 0:39Why integration testing?
  3. 1:47Basic integration test
  4. 2:07Integration testing evolution
  5. 3:15Docker advantages
  6. 4:20Start Docker containers for integration test
  7. 5:55Maven plugins
  8. 6:30Docker Compose
  9. 7:18Docker API
  10. 9:58Docker environment discovery
  11. 10:16Host port randomization
  12. 11:00Containers cleanup
  13. 11:56Waiting strategies
  14. 12:51Host port waiting strategy
  15. 22:59Demo recap
  16. 24:37JUnit 5 extensions
  17. 40:38Testing environment cluster
  18. 41:19Test cluster for automated E2E tests
  19. 43:16On-demand cluster for E2E tests
  20. 45:45Non-Kubernetes for E2E tests
  21. 48:03Docker network aliases
  22. 48:46Spring Cloud Eureka service names
  23. 58:29Takeaways
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.