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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Alberto C. Ríos
May 08, 2018
Programming
0
45
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
56
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
Redox OS でのネームスペース管理と chroot の実現
isanethen
0
410
ふつうのRubyist、ちいさなデバイス、大きな一年 / Ordinary Rubyists, Tiny Devices, Big Year
chobishiba
1
500
今年もTECHSCOREブログを書き続けます!
hiraoku101
0
120
メタプログラミングで実現する「コードを仕様にする」仕組み/nikkei-tech-talk43
nikkei_engineer_recruiting
0
210
テレメトリーシグナルが導くパフォーマンス最適化 / Performance Optimization Driven by Telemetry Signals
seike460
PRO
2
130
AI時代のシステム設計:ドメインモデルで変更しやすさを守る設計戦略
masuda220
PRO
6
1.1k
「接続」—パフォーマンスチューニングの最後の一手 〜点と点を結ぶ、その一瞬のために〜
kentaroutakeda
3
1.8k
Kubernetesでセルフホストが簡単なNewSQLを求めて / Seeking a NewSQL Database That's Simple to Self-Host on Kubernetes
nnaka2992
0
180
AWS×クラウドネイティブソフトウェア設計 / AWS x Cloud-Native Software Design
nrslib
16
3.3k
ロボットのための工場に灯りは要らない
watany
11
3.1k
maplibre-gl-layers - 地図に移動体たくさん表示したい
kekyo
PRO
0
410
今からFlash開発できるわけないじゃん、ムリムリ! (※ムリじゃなかった!?)
arkw
0
140
Featured
See All Featured
Git: the NoSQL Database
bkeepers
PRO
432
67k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
150
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
Building Adaptive Systems
keathley
44
3k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.1k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
52k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
118
110k
Discover your Explorer Soul
emna__ayadi
2
1.1k
The Language of Interfaces
destraynor
162
26k
Agile that works and the tools we love
rasmusluckow
331
21k
The Cost Of JavaScript in 2023
addyosmani
55
9.8k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
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?