Mocking Your Microservices with Mock Server
Offered By: Devoxx via YouTube
Course Description
Overview
Explore microservices testing techniques using mock-server in this 29-minute Devoxx conference talk. Learn how to isolate and test microservices by mocking dependencies, treating them like unit tests. Discover how to implement mock-server with familiar tools such as JUnit, Maven, and Docker. Gain insights into running mock-server locally, integrating it into Maven builds, and deploying it as a Docker image in cloud environments. Follow along as the speaker demonstrates practical applications, including setting up tests, using test containers, creating services, initializing clients, and performing verifications and inspections. Understand the advantages of mock-server over Kubernetes for certain testing scenarios and see a real-world example using an overengineered Mastermind game. By the end of this talk, acquire valuable skills to enhance your microservices testing approach and improve overall development efficiency.
Syllabus
Introduction
Microservices
What is mock server
Client API
Why use mock server
Where to position mock server
Running mock server
Mock server vs Kubernetes
Overengineered Mastermind
Test setup
Test containers
Create service
Initialize clients
Mock server
Verification
Inspection
JSON assert
Demo code
Component test
Running the test
Wrapping up
Taught by
Devoxx
Related Courses
How to Avoid Common Pitfalls with Modern Microservices TestingDevoxx via YouTube Wiremock - Because Your Microservice Needs a Buddy When You're Testing
Devoxx via YouTube Testing Java Microservices - From Development to Production
Devoxx via YouTube A Better Approach for Testing Micro Services - Introducing - Test Kits in Practice
Devoxx via YouTube Testing in Production at LinkedIn
Devoxx via YouTube