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
Alberto C. Ríos
May 08, 2018
Programming
0
43
Testing Spring Boot Microservices
Practical experiences testing Spring Boot microservices
Alberto C. Ríos
May 08, 2018
Tweet
Share
More Decks by Alberto C. Ríos
See All by Alberto C. Ríos
Kubernetes local development workflow distilled
albertoimpl
0
51
Kubernetes local development workflow distilled
albertoimpl
0
51
Kubernetes Distilled
albertoimpl
0
230
Testing Microservices Pipeline
albertoimpl
0
55
Other Decks in Programming
See All in Programming
関数型まつり2025登壇資料「関数プログラミングと再帰」
taisontsukada
2
850
FormFlow - Build Stunning Multistep Forms
yceruto
1
190
ReadMoreTextView
fornewid
1
480
LT 2025-06-30: プロダクトエンジニアの役割
yamamotok
0
450
ruby.wasmで多人数リアルタイム通信ゲームを作ろう
lnit
2
270
ニーリーにおけるプロダクトエンジニア
nealle
0
490
XP, Testing and ninja testing
m_seki
3
190
High-Level Programming Languages in AI Era -Human Thought and Mind-
hayat01sh1da
PRO
0
260
「Cursor/Devin全社導入の理想と現実」のその後
saitoryc
0
150
『自分のデータだけ見せたい!』を叶える──Laravel × Casbin で複雑権限をスッキリ解きほぐす 25 分
akitotsukahara
1
550
NPOでのDevinの活用
codeforeveryone
0
240
git worktree × Claude Code × MCP ~生成AI時代の並列開発フロー~
hisuzuya
1
480
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
270
20k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
Adopting Sorbet at Scale
ufuk
77
9.4k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.7k
StorybookのUI Testing Handbookを読んだ
zakiyama
30
5.8k
How to Ace a Technical Interview
jacobian
277
23k
A Modern Web Designer's Workflow
chriscoyier
694
190k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
17
940
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
161
15k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
700
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.4k
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?