Spring Boot Testing Mini-Series Part #5: WebClient Tests

preview_player
Показать описание
This video is the fifth part of the Spring Boot Testing mini-series. In this video, we look at how to write tests for WebClient REST calls.

00:00 Intro
00:18 WebClient responsibilities
03:15 Don't try to mock WebClient
06:03 MockWebServer
07:25 Requests
08:19 Input mapping and serialization
09:15 Deserialization and output mapping
11:00 Error handling

Рекомендации по теме
Комментарии
Автор

Can I just say I LOVE your background music! And yes what a great video!

divababy
Автор

I almost read all of your articles about tests. they are amazing, many thanks for sharing them with us

farhadyousefi
Автор

Well explained. Haven't seen anything better on this topic anywhere. Kudos!

shasmitagupta
Автор

Good coverage of all the key points I was concerned with and explained very nicely... thank you!

TheodoreRavindranath
Автор

Nice Explanation, keep it up, Sir...

MrPbadatiya
Автор

Absolutely loving your series. You explain everything in a very understandable manner and the background music is always very classy :) Have you thought about making a video on TDD?

smpl_
Автор

Great work. How about making a video for writing tests for SpringBatch?

icstreispe
Автор

thank you for explanation, I was struggling with a webClientTest, and when I finally arrive to test it, I see in debug mode that my test pass throw all lines, but in Sonar steel have issues about coverage test of this webClient, I don't understand why

dev_project
Автор

Hi i used this, test case is getting passed. but it is not covering in sonarcube code coverage. is this will cover in code coverage?

babuperumal
Автор

Hi, Please add Junit for 500 Internal Server Error code(OnStatus ) using webclient.This will be great help if you provide.

harshchidar
Автор

Hi, I'm getting an error "class file for not found". What to do in this case?

theweekday
Автор

RecordedRequest request = mockwebserver.takeRequest(); takes a long time and hangs, why ?

wirstan