Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Mocking Your Microservices with Mock Server

Devoxx via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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

Reviews

Start your review of Mocking Your Microservices with Mock Server

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.