~/talk

Mocking your microservices with mock server

Talkat Devoxx Belgium 2019 · 2019-11-04..11-08· [testing, microservices]
slides:none on file

Demonstrates that MockServer can mock any HTTP dependency and run as a separate process so you can run Docker-built services under test with isolated component tests; uses JUnit 5, Testcontainers, Docker, RestAssured and JSONAssert; builds an over‑engineered Mastermind game service and runs three MockServer containers to replace generator/checker/tournament, verifies requests and JSON bodies and reports tests completing in about 8 seconds; claim is that this reduces cross‑team dependency and it works as shown.

AI-written summary · about

  1. 0:00Introduction
  2. 0:40Microservices
  3. 3:22What is mock server
  4. 4:37Client API
  5. 5:20Why use mock server
  6. 7:40Where to position mock server
  7. 9:13Running mock server
  8. 10:40Mock server vs Kubernetes
  9. 12:50Overengineered Mastermind
  10. 14:02Test setup
  11. 14:31Test containers
  12. 15:01Create service
  13. 16:05Initialize clients
  14. 16:57Mock server
  15. 18:01Verification
  16. 19:17Inspection
  17. 20:50JSON assert
  18. 21:05Demo code
  19. 23:00Component test
  20. 24:56Running the test
  21. 26:20Wrapping up
~/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.