Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Testing Spring Boot Microservices
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Alberto C. Ríos
May 08, 2018
Programming
45
0
Share
Testing Spring Boot Microservices
Practical experiences testing Spring Boot microservices
Alberto C. Ríos
May 08, 2018
More Decks by Alberto C. Ríos
See All by Alberto C. Ríos
Kubernetes local development workflow distilled
albertoimpl
0
58
Kubernetes local development workflow distilled
albertoimpl
0
53
Kubernetes Distilled
albertoimpl
0
240
Testing Microservices Pipeline
albertoimpl
0
59
Other Decks in Programming
See All in Programming
飯MCP
yusukebe
0
490
The Monolith Strikes Back: Why AI Agents ❤️ Rails Monoliths
serradura
0
290
Java 21/25 Virtual Threads 소개
debop
0
340
それはエンジニアリングの糧である:AI開発のためにAIのOSSを開発する現場より / It serves as fuel for engineering: insights from the field of developing open-source AI for AI development.
nrslib
1
830
PHPで TLSのプロトコルを実装してみる
higaki_program
0
750
Redox OS でのネームスペース管理と chroot の実現
isanethen
0
570
Vibe하게 만드는 Flutter GenUI App With ADK , 박제창, BWAI Incheon 2026
itsmedreamwalker
0
550
GNU Makeの使い方 / How to use GNU Make
kaityo256
PRO
16
5.6k
[PHPerKaigi 2026]PHPerKaigi2025の企画CodeGolfが最高すぎて社内で内製して半年運営して得た内製と運営の知見
ikezoemakoto
0
340
PDI: Como Alavancar Sua Carreira e Seu Negócio
marcelgsantos
0
110
Offline should be the norm: building local-first apps with CRDTs & Kotlin Multiplatform
renaudmathieu
0
180
Oxlintとeslint-plugin-react-hooks 明日から始められそう?
t6adev
0
110
Featured
See All Featured
Prompt Engineering for Job Search
mfonobong
0
260
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.4k
The Curious Case for Waylosing
cassininazir
0
300
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Practical Orchestrator
shlominoach
191
11k
Building AI with AI
inesmontani
PRO
1
880
The Pragmatic Product Professional
lauravandoore
37
7.2k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
180
Art, The Web, and Tiny UX
lynnandtonic
304
21k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
190
Product Roadmaps are Hard
iamctodd
PRO
55
12k
Transcript
Testing Microservices Practical experiences Greg Patricio and Alberto Ríos
This is a conversation We are going to be talking,
but feel free to stop us
Testing a stand-alone service User Service
Testing a stand-alone service Unit tests Integration tests Component tests
CT Testing a stand-alone service Controller Service Repository Mock Controller
Mock Service HTTP API Controller Repository DB IT UT HTTP API DB
When do we use Test Doubles? Service Mock Repo Unit
tests. Scope: class Unit
Code example: unit test
Code example: integration test
Code example: integration test
When do we use Test Doubles? Service Mock Repo Unit
tests. Scope: class Stub External Dep Component tests. Scope: whole service Unit Unit Service Http Client Controller
Code example: component test
Testing a service with an external dependency Billing Service User
Service
Testing a service with an external dependency Unit tests Integration
tests Component tests Contract Checks
What is a contract check? Billing Service User Service Contract
Check Can the service consume its external dependencies?
What is a contract check? Billing Service User Service Contract
Check Service HTTP Client Controller User Service Can the service consume its external dependencies? Billing Service
Code example: contract check
CT Testing a service with an external dependency Controller Service
HTTP Client Mock Controller Mock Service Mock HTTP Client HTTP API Controller HTTP Client Real User Service IT UT CC Controller Service Repository HTTP API DB
Acknowledgement Bengt G. Hammarlund Cassio Dias Pivotal-STCS Sonora team
Thank you! Questions?