Learn to effectively integrate and build RESTful API clients into Java and Spring Boot applications using WireMock.
About This Video
This course will help students to learn about how to write unit tests involving RESTful API integrations
Write unit tests that cover all possible scenarios in a REST-based interaction
In Detail
WireMock is a simulator for HTTP-based APIs or MockServer. REST APIs are everywhere today as they're the modern and easiest way …
WireMock for Java Developers
Video description
Learn to effectively integrate and build RESTful API clients into Java and Spring Boot applications using WireMock.
About This Video
This course will help students to learn about how to write unit tests involving RESTful API integrations
Write unit tests that cover all possible scenarios in a REST-based interaction
In Detail
WireMock is a simulator for HTTP-based APIs or MockServer. REST APIs are everywhere today as they're the modern and easiest way to build functionality and expose them to the real world. When it comes to writing unit test cases that involve REST-based interactions, there is always a challenge in testing error responses, network faults, latency, and timeouts. WireMock will solve the problem of application code that depends on an external service by mocking the actual service.
In the microservices architecture, It is pretty common for services to depend on one another and it's always a challenge to write test cases for code that depends on other external services. WireMock provides the necessary tools to simulate an external service so that code that depends on the external service can be tested; this helps to build a robust REST client.
This course covers the following techniques using WireMock:
Service virtualization
Simulating an external service
Simulating latency
Simulating error responses
Simulating network errors
Learn to integrate the most powerful HTTP Mock library, WireMock, into your applications to build a resilient and robust REST API client.
Configuring read/write Timeout - Spring Webclient
00:05:13
Simulating Latency
00:04:13
Chapter 10 : Selective Proxying - Hands On
What is Selective Proxying?
00:01:24
Simulating Selective Proxying
00:05:01
Chapter 11 : Running WireMock on Junit 4
WireMock on JUnit4
00:02:00
Run WireMock on JUnit4
00:05:43
Chapter 12 : Running WireMock on Spring Boot - Hands On
Overview and Project SetUp
00:04:30
Building the Client Code
00:05:08
Run WireMock on Spring Boot using @AutoConfigureWireMock - Approach 1
00:09:57
Run WireMock on Spring Boot using WireMockRule- Approach 2
00:03:16
Chapter 13 : Running WireMock with Spring Boot and JUnit5
Configuring Spring Boot for JUnit5
00:03:09
Run WireMock with Spring Boot and JUnit5
00:05:20
Run WireMock with Spring Boot/JUnit5 using WireMockExtension
00:05:18
Start your Free Trial Self paced Go to the Course We have partnered with providers to bring you collection of courses, When you buy through links on our site, we may earn an affiliate commission from provider.
This site uses cookies. By continuing to use this website, you agree to their use.I Accept