Speed up writing tests with Wiremock Spring Boot
summary
Shows how WireMock Spring Boot spins a test server and injects its URL into Spring properties, so unit tests hit a local mock instead of the real API. Builds a JsonPlaceholder to‑do client, provides JsonPlaceholder mappings for GET/POST/PUT, and asserts the GET all returns 200 todos from the mapping, POST assigns an ID (201), and error paths return 500 so exception handling is verified.
AI-written summary · about
chapters (4)
related talks
51mFramework agnostic REST api testing
50mTesting Spring Boot Applications
32mWiremock: because your microservice needs a buddy when you're testing
31mThe power of mocking APIs
38mDoublers in Tests. Wiremock vs Mockito
41mAdvanced HTTP Mocking with
44mFake It until You Make It! API Integration Testing with Containers & WireMock
44mTesting Web Apps with Spring Framework
