WireMock for Java Developers
WireMock for Java Developers, available at $69.99, has an average rating of 4.4, with 54 lectures, based on 236 reviews, and has 1544 subscribers.
You will learn about This course will help the students to learn about “how to write unit tests” which involves RESTFUL API integrations. Build REST API Clients using Spring Webclient Write Unit Tests that covers all the possible scenarios in a REST based interaction Mock an External Service using WireMock 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 This course is ideal for individuals who are Developers who would like to learn building RESTFUL API Clients using Spring WebClient or Java Developers who would like to learn about building resilient RESTFUL API Clients or Developers who would like to write Unit Tests that depends on other services or Developers who would like to write Unit Tests that covers Latency, Timeouts and Network faults It is particularly useful for Developers who would like to learn building RESTFUL API Clients using Spring WebClient or Java Developers who would like to learn about building resilient RESTFUL API Clients or Developers who would like to write Unit Tests that depends on other services or Developers who would like to write Unit Tests that covers Latency, Timeouts and Network faults.
Enroll now: WireMock for Java Developers
Summary
Title: WireMock for Java Developers
Price: $69.99
Average Rating: 4.4
Number of Lectures: 54
Number of Published Lectures: 54
Number of Curriculum Items: 56
Number of Published Curriculum Objects: 56
Original Price: $89.99
Quality Status: approved
Status: Live
What You Will Learn
- This course will help the students to learn about “how to write unit tests” which involves RESTFUL API integrations.
- Build REST API Clients using Spring Webclient
- Write Unit Tests that covers all the possible scenarios in a REST based interaction
- Mock an External Service using WireMock
- 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
Who Should Attend
- Developers who would like to learn building RESTFUL API Clients using Spring WebClient
- Java Developers who would like to learn about building resilient RESTFUL API Clients
- Developers who would like to write Unit Tests that depends on other services
- Developers who would like to write Unit Tests that covers Latency, Timeouts and Network faults
Target Audiences
- Developers who would like to learn building RESTFUL API Clients using Spring WebClient
- Java Developers who would like to learn about building resilient RESTFUL API Clients
- Developers who would like to write Unit Tests that depends on other services
- Developers who would like to write Unit Tests that covers Latency, Timeouts and Network faults
WireMock is a simulator for HTTP-based APIsor MockServer.
REST APIs are everywhere today as it’s the modern and easiest way to build a 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 other 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 the 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 a Resilientand Robust REST API clients.
Why you should use WireMock ?
-
If your application depends on an API that does not exist but still you would like to build the REST Client then WireMock can help support that kind of development.
-
If you would to cover all the edge cases scenarios such as NetWork Errors, Faults, Latencyand RunTime Exception in your REST Client then start using WireMock
-
If you would like to write Unit Test cases that covers 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 other. WireMock is a powerful simulation tool to simulate the service that your application depends on it. In a nutshell, WireMock is a Service Virtualization tool.
What’s Covered in this Course?
-
Introduction to WireMock
-
Learn to build 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 Spring Boot application
Prerequisites for the Course:
-
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.,
Section : Introduction to WireMock
In this section, I will cover the Introduction to WireMock from the theoretical perspective.
-
Why WireMock ?
-
What is WireMock ?
-
WireMock vs Mocking Libraries – A quick comparison between WireMock and Mockito.
Section : Setting up the WorkSpace for the course
-
In this section, we will set up the workspace for this course.
Section : Build REST Clients using Spring WebClient – Hands On
In this section, we will code and learn how to build a REST client using WebClient.
-
Set up the base project movies-app for this course
-
Build the Rest Clients that will be used throughout the course using Spring WebClient
-
Build Rest Clients that covers the HTTP Methods such as GET, POST, PUT and DELETE
Section : Setting Up WireMock
In this section we will configure the WireMock in to our movies-app project.
Section : Build Stubs Using WireMock – Hands On
In this section, we will code and learn about how to create Stubs using wiremock and have test case interact with wiremock instead of the actual service.
-
Learn about how to create stubs using WireMock
-
Learn to create stubs for different HTTP Methods such as GET, POST, PUT and DELETE
-
Learn to Simulate HTTP Responses with 400-Bad Request
-
Learn about how to perform ResponseTemplating in WireMock
Section: Verifying the Stubs – Hands On
In this section ,I will cover about how to make sure the stubs are invoked as expected by using the Verification DSL.
-
Explore the Verify DSL in WireMock
Section : Simulating Server/Fault Responses – Hands On
In this section , I will cover how to simulate the fault HTTP responses such as 5xx Errors, Fault Responses using WireMock.
-
Learn about the difference between ServerError and Fault responses
-
Learn to simulate a Server Error using WireMock
-
Learn to simulate a Network Error using WireMock
Section : Simulating Latency – Hands On
In this section, I will cover how to configure Timeout and simulate latency so that the client times out if the response is not received within the configured time.
-
Learn to configure the timeout in the REST Client
-
Learn to Simulate Latency and test your REST Client times out as expected
Section : Selective Proxying – Hands On
In this section, we will learn about “What is Selective proxying?” and “how to implement Selective proxying”using Wiremock.
-
Learn about What is Selective Proxying? and When to use Selective Proxying?
-
Learn to simulate Selective Proxying using WireMock
Section : Running WireMock on JUnit4
In this section, we will code and learn how to run a wiremock on a JUnit4 based environment.
Section : Running WireMock on Spring Boot – Hands On
In this section, I will cover how to run and configure WireMock in a Spring Boot project.
Section: Running WireMock with Spring Boot and JUnit5
In this section, we will code and learn about how to run the Spring Boot Project in a JUnit5 environment.
By completing this course, you will have a pretty good idea about the following:
-
How to Integrate WireMock in to your project
-
How to Build resilient RESTFUL API Clients
Thanks for taking your time to view my course and hope to see you in my course.
Course Curriculum
Chapter 1: Getting Started with Course
Lecture 1: Course Introduction & Objectives
Lecture 2: Pre-Requesities
Chapter 2: Introduction to WireMock
Lecture 1: Why WireMock?
Lecture 2: What is WireMock ?
Lecture 3: WireMock vs Mocking Libraries
Chapter 3: Slides for the course
Lecture 1: Slides for the course
Chapter 4: Setting up the WorkSpace for the course
Lecture 1: Overview of the application
Lecture 2: Source Code
Lecture 3: Set up the Movies RESTFUL Service
Lecture 4: Exploring the Movies RESTFUL Service [Optional]
Chapter 5: Build RESTFUL Clients using Spring WebClient
Lecture 1: Setting up the Movies App
Lecture 2: RestTemplate vs Spring WebClient
Lecture 3: Setting up the Movies Domain
Lecture 4: Build Movies REST Client using Spring WebClient
Lecture 5: Build Movies REST Client test using JUnit5
Lecture 6: WebClient – Retrieve Movie by Movie-ID
Lecture 7: WebClient – Retrieve Movie by Movie-Name
Lecture 8: WebClient – Retrieve Movie By Year
Lecture 9: WebClient – Add a new Movie – HTTP POST
Lecture 10: WebClient – Update a Movie – HTTP PUT
Lecture 11: WebClient – Delete a Movie – HTTP DELETE
Chapter 6: Setting Up WireMock
Lecture 1: Configuring WireMock
Chapter 7: Build Stubs Using WireMock – Hands On
Lecture 1: Overview
Lecture 2: Create the very first WireMock Stub
Lecture 3: How WireMock works Behind the scenes and Matches the Stub?
Lecture 4: URL Matching Stub – urlPathEqualTo()
Lecture 5: URL Matching Stub – urlPathMatching()
Lecture 6: Generate Dynamic Http Response using ResponseTemplateTransformer
Lecture 7: Stub with 400 HttpStatus as Response
Lecture 8: Stub matches a Query Param using urlEqualTo() and urlPathEqualTo()
Lecture 9: Generate Dynamic Response Stub by reading Query Param from the request
Lecture 10: Stub with RequestBody – HTTP POST
Lecture 11: Dynamic Response Stub – HTTP POST
Lecture 12: Stub with 400 Bad Request Response – HTTP POST
Lecture 13: Stub for HTTP PUT
Lecture 14: Stub for HTTP DELETE
Chapter 8: Verifying the Stubs – Hands On
Lecture 1: Why Verify the Stubs?
Lecture 2: Explore the verify DSL
Chapter 9: Simulating Server/Fault Responses – Hands On
Lecture 1: Introduction to Server/Fault Responses
Lecture 2: Simulating 5xx Response
Lecture 3: Simulating Fault Responses – Network Errors
Chapter 10: Simulating Latency – Hands On
Lecture 1: Configuring read/write Timeout in Spring WebClient
Lecture 2: Simulating Latency
Chapter 11: Selective Proxying – Hands On
Lecture 1: What is Selective Proxying ?
Lecture 2: Simulating Selective Proxying
Chapter 12: Running WireMock on Junit 4
Lecture 1: WireMock on JUnit4
Lecture 2: Run WireMock on JUnit4
Chapter 13: Running WireMock on Spring Boot
Lecture 1: Overview and Project SetUp
Lecture 2: Building the Movies App Client Code
Lecture 3: Run WireMock on Spring Boot using @AutoConfigureWireMock – Approach 1
Lecture 4: Run WireMock on Spring Boot using WireMockRule- Approach 2
Chapter 14: Running WireMock with Spring Boot and JUnit5
Lecture 1: Configuring Spring Boot for JUnit5
Lecture 2: Run WireMock with Spring Boot and JUnit5
Lecture 3: Run WireMock with Spring Boot/JUnit5 using WireMockExtension
Instructors
-
Pragmatic Code School
Technology Enthusiast, Online Instructor
Rating Distribution
- 1 stars: 7 votes
- 2 stars: 6 votes
- 3 stars: 23 votes
- 4 stars: 89 votes
- 5 stars: 111 votes
Frequently Asked Questions
How long do I have access to the course materials?
You can view and review the lecture materials indefinitely, like an on-demand channel.
Can I take my courses with me wherever I go?
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don’t have an internet connection, some instructors also let their students download course lectures. That’s up to the instructor though, so make sure you get on their good side!
You may also like
- Top 10 Language Learning Courses to Learn in November 2024
- Top 10 Video Editing Courses to Learn in November 2024
- Top 10 Music Production Courses to Learn in November 2024
- Top 10 Animation Courses to Learn in November 2024
- Top 10 Digital Illustration Courses to Learn in November 2024
- Top 10 Renewable Energy Courses to Learn in November 2024
- Top 10 Sustainable Living Courses to Learn in November 2024
- Top 10 Ethical AI Courses to Learn in November 2024
- Top 10 Cybersecurity Fundamentals Courses to Learn in November 2024
- Top 10 Smart Home Technology Courses to Learn in November 2024
- Top 10 Holistic Health Courses to Learn in November 2024
- Top 10 Nutrition And Diet Planning Courses to Learn in November 2024
- Top 10 Yoga Instruction Courses to Learn in November 2024
- Top 10 Stress Management Courses to Learn in November 2024
- Top 10 Mindfulness Meditation Courses to Learn in November 2024
- Top 10 Life Coaching Courses to Learn in November 2024
- Top 10 Career Development Courses to Learn in November 2024
- Top 10 Relationship Building Courses to Learn in November 2024
- Top 10 Parenting Skills Courses to Learn in November 2024
- Top 10 Home Improvement Courses to Learn in November 2024