~/talk

Doublers in Tests. Wiremock vs Mockito

Talkat TestCon Vilnius 2018 · 2018-10-16..10-18· [microservices, testing]
links:none on file
slides:none on file

Compares Mockito and WireMock with concrete code examples and setup: WireMock runs as a standalone jar with embedded Jetty controlled by JUnit rules, replaces HTTP services in unit and integration tests, and verifies requests (spies) and responses; default behavior returns default 404 unless configured to fail fast; supports transformation for JWT and advanced features like proxy and failure injection. Demonstrates generating Pact files from WireMock and validating contracts against Swagger, and warns that doubles go stale so pipelines must verify doubles against real provider APIs.

AI-written summary · about

  1. 0:00Intro
  2. 0:50Agenda
  3. 2:25Context
  4. 9:55Architecture
  5. 13:10Capabilities
  6. 19:55Setup
  7. 25:05Risk
  8. 26:08Mockito
  9. 26:56Mockito Exceptions
  10. 27:29Mockito Contracts
  11. 28:55Providers
  12. 29:29Parked
  13. 30:45Parked specification
  14. 31:38Dependency
  15. 32:21Swagger
  16. 33:33Pipelines
  17. 33:56Duplication
  18. 34:30Cancel Consumer
  19. 35:09Where is Swagger
  20. 35:19Swagger API
  21. 37:10Conclusion
~/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.