Bootiful testing
summary
Argues that test-driven work makes features shippable quickly and shows concrete recipes: unit tests with JUnit/Hamcrest, reactive persistence tests using StepVerifier, lightweight slices and @MockBean to avoid full startup, and HTTP tests with WebTestClient. Builds a producer and a client, auto-generates WireMock stubs from contracts, and uses Spring Cloud Contract + the stub runner jar so client tests run without deploying services; a deliberate contract mismatch (name vs reservationName) demonstrates the contracts catch integration breaks. Spring Cloud Contract wiremock stub runner StepVerifier @MockBean
AI-written summary · about
chapters (16)
- 0:00Start
- 9:44Test-Driven Development
- 9:55Test-Driven Development
- 11:50The Testing Pyramid
- 12:23Do I Start from the Outside or Do I Start Inside
- 16:30Reservation Pojo Test
- 18:38Create Your Own Matches
- 19:45Persistence
- 24:37Create an Http Api
- 27:21Red-Green Refactoring
- 28:19Create the Reservation Http Configuration
- 32:52Build a Client
- 36:31Auto Configuration Report
- 40:31Wire Mock
- 50:09Extend a Base Class
- 54:05Configure Stub Runner
