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
33
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
40
Kubernetes local development workflow distilled
albertoimpl
0
42
Kubernetes Distilled
albertoimpl
0
200
Testing Microservices Pipeline
albertoimpl
0
36
Other Decks in Programming
See All in Programming
Amazon SQSコンシューマー疎結合への旅 - 出張! #DevelopersIO IT技術ブログの中の人が語る勉強会 #3
quiver
0
270
GitHub Actionsで泣かないためにやっておきたい設定 / Recommended GHA settings to avoid crying
pinkumohikan
3
530
Snowflakeで眠ったデータを起こそう!
estie
0
120
データアナリストが行うDatabricksを活用したETLの自動化事例
shinoa
0
270
デフォルトにして至高、RubyMineの大好きな所
ruzia
0
330
Blue/Greenデプロイの導入による 運用フローの改善
kudoas
1
370
冗長なエラーログを削減し、スタックトレースを手に入れる / Reducing Verbose Error Logs and Obtaining Stack Traces
upamune
0
540
検証も兼ねて個人開発でHonoとかと向き合った話
hanetsuki
0
890
HUIT新歓2024「競技プログラミング、やってみませんか?」
slephy2784
1
270
Micro Frontends for Java Microservices - Devnexus 2024
mraible
PRO
0
490
障害対応を起点としたもっといい開発と運用のサイクル作りのためにできること / Hatena Enginner Seminar #29
polamjag
0
140
VSCodeでのDatabricks開発もお勧めしたい/I would also recommend Databricks development with VSCode.
kazumain
0
250
Featured
See All Featured
Product Roadmaps are Hard
iamctodd
44
9.7k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
6
1.5k
Debugging Ruby Performance
tmm1
70
11k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
14
1.5k
Learning to Love Humans: Emotional Interface Design
aarron
267
39k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3k
A better future with KSS
kneath
231
16k
StorybookのUI Testing Handbookを読んだ
zakiyama
13
4.6k
How GitHub (no longer) Works
holman
304
140k
Rails Girls Zürich Keynote
gr2m
91
13k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
104
6.6k
Atom: Resistance is Futile
akmur
259
25k
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?