Spring Tips: Testing Reactive Code
Vložit
- čas přidán 9. 07. 2024
- Hi Spring fans! In this installment of Spring Tips, we look at how to test reactive applications and microservices with TDD style, inside-out testing from component to contract.
speaker: Josh Long
/ starbuxman - Věda a technologie
Thanks so much for posting this, helps a lot
Great Video Josh, thanks for that.
Btw in IntelliJ you can inject a language into the string, e.g. JSON @ 37:16 and then edit the Json String without having to escape all the quotes.
At 34:40, why did you create constructor to populate webClient field in ReservationClient? Can't we simply autowire webClient since we have already created a @Bean of WebClient in the main application class?
I see a tooltip at the bottom of the video whenever you press a keyboard shortcut. How did you do that? Is it an IntelliJ feature?
love the nyan cat progress bar... i want it
It's in the plugins marketplace of IntelliJ
Could you share the github link for this tutorial?
Hi Josh, thank you for the video. The first test that I did with the reactive mongo db fails with "No server chosen by com.mongodb.async.client.ClientSessionHelper$1@45e140ae from cluster description ClusterDescription{type=UNKNOWN, connectionMode=SINGLE, serverDescriptions=[ServerDescription{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/0:0:0:0:0:0:0:1:27017}, caused by {java.net.ConnectException: Connection refused}}]}. Waiting for 30000 ms before timing out". I have searched for a solution but don't find any. Can you point me in right direction please. Thank you, Brandt.