WireMock Course for Java Developers
Learn to build robust RESTFUL API Clients, Service Virtualization in Java and SpringBoot applications using WireMock.
Development ,Programming Languages,Java
Lectures -50
Resources -12
Duration -4 hours
Lifetime Access
Lifetime Access
30-days Money-Back Guarantee
Get your team access to 10000+ top Tutorials Point courses anytime, anywhere.
Course Description
WireMock is a simulator for HTTP-based APIs or MockServer.
REST APIs are everywhere today, as it's the modern and easiest way to build functionality and expose it 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 is going to solve this problem of the application code that depends on the external service by mocking the actual service.
In MicroServices Architecture, It is pretty common for services to depend on one another and it's always a challenge to write test cases for the code that depends on other external services. WireMock provides the necessary tools to simulate an external service so the code that depends on the external service can be tested, which helps to build a robust REST client.
This course is going to cover the techniques that are listed below using WireMock:
Service Virtualization
Simulating the External Service
Simulating Latency
Simulating Error response
Simulating Network errors
Learn to integrate the most powerful HTTP mock library, WireMock, into your application to build resilient and robust REST API clients.
Why should you use WireMock?
If your application depends on an API that does not exist but still would like to build the REST client, then WireMock can help support that kind of development.
If you want to cover all the edge cases scenarios, such as NetWork Errors, Faults, Latency, and RunTime Exceptions, in your REST client, then start using WireMock
If you would like to write Unit Test cases that cover all the possible scenarios that can happen in a REST-based interaction, then start using WireMock.
In a MicroServices architecture, it is pretty common for your services to depend on each other. WireMock is a powerful simulation tool to simulate the service that your application depends on. In a nutshell, WireMock is a Service Virtualization tool.
What's Covered in this Course?
Introduction to WireMock
Learn to build a REST client using the Spring WebClient.
Learn to virtualize an External Service
Learn to create Stubs using WireMock
Learn to simulate network errors, latency, network timeouts, and more.
Learn to run WireMock using JUnit4 and JUnit5 platform
Learn to integrate and run WireMock in the Spring Boot application
Goals
- This course will help the students learn about “how to write unit tests,” which involves RESTFUL API integrations.
- Mock an External Service using WireMock
- Build REST API Clients using Spring Webclient
- Write Unit Tests that cover all the possible scenarios in a REST-based interaction
- Build a robust REST Client by simulating Network Errors
- Build a robust REST Client by simulating Network Latency
- Unit Test the timeout of the REST Client
Prerequisites
- Experience working with Java applications
- Java 8 or Higher
- Knowledge of building RESTFUL API Clients
- Knowledge of RESTFUL API
- Experience working with Gradle/Maven
- Experience working with IntelliJ, Eclipse, etc.

Curriculum
Check out the detailed breakdown of what’s inside the course
Getting Started with Course
2 Lectures
-
Course Introduction & Objectives 02:24 02:24
-
Pre-Requesities 00:45 00:45
Introduction to WireMock
3 Lectures

Build REST Clients using Spring WebClient - Hands On
11 Lectures

Setting Up WireMock
1 Lectures

Build Stubs Using WireMock - Hands On
14 Lectures

Verifying the Stubs - Hands On
2 Lectures

Simulating Server/Fault Responses - Hands On
3 Lectures

Simulating Latency - Hands On
2 Lectures

Selective Proxying - Hands On
2 Lectures

Running WireMock on Junit 4
2 Lectures

Running WireMock on Spring Boot - Hands On
4 Lectures

Running WireMock with Spring Boot and JUnit5
3 Lectures

Instructor Details

Dilip Sundarraj
Course Certificate
Use your certificate to make a career change or to advance in your current career.

Our students work
with the Best


































Related Video Courses
View MoreAnnual Membership
Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses
Subscribe now
Online Certifications
Master prominent technologies at full length and become a valued certified professional.
Explore Now