YouTube series explaining how to use WireMock for mocking the HTTP communication to external systems for integration tests.
This second video lesson takes a closer look at the various features of WireMock: HTTP response stubbing, verification, configuration, etc.
While the sample application uses Spring Boot, you can use this testing recipe for any Java application.
Content:
0:00 Request Matching Capabilities
03:50 Reusing vs. Resetting Request Stubbings
07:00 Resetting the WireMock Stubbing Settings
08:00 Prioritizing Request Stubbings
10:30 Returning JSON Payloads
13:55 Verify Incoming HTTP Requests
17:00 Get Access To The ServeEvents
21:00 Summary And Outlook
Part I: https://youtu.be/aANqNIY2IjY
Part II: https://youtu.be/pji3EJQ8UUc
Part III: https://youtu.be/kj4rqvFASdw
Part IV: https://youtu.be/aeioeXjiz2Y
The source code for this video is available on GitHub: https://github.com/rieckpil/blog-tutorials/tree/master/spring-boot-integration-tests-wiremock
30 Testing Tools and Libraries Every Java Developer Must Know: https://rieckpil.de/testing-tools-and-libraries-every-java-developer-must-know/
» Testing Spring Boot applications deep-dive: https://rieckpil.de/testing-spring-boot-applications-masterclass/
#http #wiremock #java