~/talk

Integration Testing with Spring

Talkat SnowOne 2021 · 2021-02-26..02-27· [testing]
slides:none on file

Advocates shifting weight from heavy mocking to longer-scoped, transactional tests that rollback so each test leaves no DB state; shows H2 in-memory, standalone H2, and Dockerized MySQL (docker‑compose + failsafe) for DB realism; demonstrates p6spy to see SQL and detect stray commits from requires_new nested transactions; shows @MockBean for cutting external REST calls and WireMock (and recorder) to run real HTTP responses; uses Gherkin/Cucumber for many data-driven cases and explains cleanup strategies versus costly context restarts.

AI-written summary · about

  1. 0:00Introduction
  2. 2:43Why integration testing matters
  3. 8:21Testing with different databases
  4. 15:19Cleaning up test data
  5. 21:18Spring context management
  6. 25:12Transactional test isolation
  7. 33:50Inserting test data efficiently
  8. 40:13Cucumber for readable tests
  9. 44:28Mocking external services
  10. 47:14Dockerized dependencies
  11. 50:01Mocking HTTP endpoints
  12. 57:14WireMock for API testing
  13. 59:07Choosing the right database
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.