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
Play by Play: Developing Microservices and Mobile Apps with JHipsterPluralsight Software Archaeology - Learning from the Landing on the Moon
Devoxx via YouTube Create an Eco-Friendly World with Green Software Engineering
Devoxx via YouTube Platform Building for Data Mesh - Show Me How It Is Done
Devoxx via YouTube The Hitchhiker's Guide to Software Architecture and Design
Devoxx via YouTube