Spring Boot WebFlux | Write Integration Test Using Mockito & Junit | JavaTechie

preview_player
Показать описание
This tutorial will walk you through how to write Integration test using WebFluxTest and WebTestClient

#javatechie #reactive #mongoDB #Webflux

GitHub:

Blogs:

Facebook:

guys if you like this video please do subscribe now and press the bell icon to not miss any update from Java Techie

Disclaimer/Policy:
--------------------------------
Note : All uploaded content in this channel is mine and its not copied from any community , you are free to use source code from above mentioned GitHub account
Рекомендации по теме
Комментарии
Автор

Was struggling with mockito, you came as savior, recommended your channel to many of my colleagues, such a genuine practical work..kudos Basant, God flourish all love to you and your loved ones ❤

rajach
Автор

Thanks again! God bless you for your clean and useful presentation! Keep going with new topics!

calintamas
Автор

Such an underrated Channel and I wish you to reach million subscribers bro !

rameshbabub
Автор

Thanks for wonderful series. Can you please add more videos on -
1. WebClient and then how to right unit test cases for it
2. writing a driver method which invokes 2 or more flux/mono and then which is chained(1st out put will be 2nd calls input). how to achieve reactive behaviour

paragmangal
Автор

Yeeeeaaah, but what you're really testing here is technically speaking the web layer of the Spring framework, so you're getting answers to questions like: "if such and such url is hit, will it really go to the right controller and will Spring correctly create the objects (DTOs and path variable args etc.) based on the url and json body if one is on the request. Sure it will! It has its own tests for that. You get very little assurance from such tests if dao/repository layer is not involved. It would be way more beneficial if you were going all the way down to the database. In other words you would be getting answers for questions like: "When you hit such and such url and put such and such payload on the request, such and such object gets created in the mongo embedded database". Also you would write your assertions by either going directly to the database or by calling get methods that return the created/affected objects which are pulled from the database.

hicnar
Автор

Embedded MongoDb test also required. It will be helpful if you make it.

AbhaySingh-dset
Автор

Hi @javatechie if possible could you please show debugging for spring reactive applications in detail

sammetaram
Автор

Can you please make tutorial on reactive programing with Kafka and ActiveMQ

chiragmatta
Автор

Please create tutorial for spring mvc from scratch

narendrakumar
Автор

Thanks for the video, its simply great!. Can you please show how the real world consumer/subscriber takes events from the Flux publisher ? I got it from your example with delay of 1 sec, but in real world where and how this can be implemented?

srinivasulupagadala
Автор

Could you please show to write test cases for private and static methods in spring reactive

sammetaram
Автор

I am not able to use existsById method here, how to use it, i am getting error: Error creating bean with name repository

sandeepvishwakarma
Автор

Spring WebFlux got completed? 🤔
Why no more videos on webflux?

aadiraj
Автор

But we should mock the repo and not service AFAIK.

asashish
Автор

Hi sir. Can ytou help me for create webclient in oauth2 using webflux? If you have encountered this problem before, please share with me.

ogabeksaidov
Автор

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

harshchidar
Автор

Rename this video as Unit testing, not integration testing.

HariKrishna-miis