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

  Рет қаралды 27,892

Java Techie

Java Techie

Күн бұрын

Пікірлер: 35
@rameshbabub5243
@rameshbabub5243 3 жыл бұрын
Such an underrated Channel and I wish you to reach million subscribers bro !
@Javatechie
@Javatechie 3 жыл бұрын
Thanks Ramesh 😊
@hicnar
@hicnar 3 жыл бұрын
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.
@Javatechie
@Javatechie 3 жыл бұрын
I didn't use mocking here it's just a demo of asset verifier
@rajach6636
@rajach6636 3 жыл бұрын
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 ❤
@Javatechie
@Javatechie 3 жыл бұрын
Thanks Raj 😁
@calintamas7576
@calintamas7576 3 жыл бұрын
Thanks again! God bless you for your clean and useful presentation! Keep going with new topics!
@pratishrutipanda6461
@pratishrutipanda6461 3 жыл бұрын
Most awaited video
@AbhaySingh-ds9et
@AbhaySingh-ds9et Жыл бұрын
Embedded MongoDb test also required. It will be helpful if you make it.
@aadiraj6126
@aadiraj6126 3 жыл бұрын
Spring WebFlux got completed? 🤔 Why no more videos on webflux?
@Javatechie
@Javatechie 3 жыл бұрын
Next video will be webflux , also getting very poor response from viewers when I upload reactive programming
@AkashSingh-gk9zk
@AkashSingh-gk9zk 3 жыл бұрын
@@Javatechie hahha...... reactive is not everyone cup of tea
@ashokbotla904
@ashokbotla904 3 жыл бұрын
@@Javatechie Hi Bro, Not like that people are slowly started using Reactive programming in their projects, so it will take time to get views but surely all will start watching your videos. Especially like me. Please don't stop to upload the quality content it will be uneasy to check half content in one place an half content in another place. Your videos are very helpful to clear the interviews even in work environment also clearing more doubts. So Please upload videos. Many People are watching your videos i also recommended to my friends and colleagues. Views will get slowly keep posting on your videos. Thank You for uploading very useful videos.Really Thank you.
@Javatechie
@Javatechie 3 жыл бұрын
Hi Ashok thank you for let me know the facts. I will continue other part of series soon .
@sammetaram4528
@sammetaram4528 Жыл бұрын
Hi @javatechie if possible could you please show debugging for spring reactive applications in detail
@Javatechie
@Javatechie Жыл бұрын
Okay i will
@sammetaram4528
@sammetaram4528 Жыл бұрын
Could you please show to write test cases for private and static methods in spring reactive
@sandeepvishwakarma5509
@sandeepvishwakarma5509 10 ай бұрын
I am not able to use existsById method here, how to use it, i am getting error: Error creating bean with name repository
@Javatechie
@Javatechie 10 ай бұрын
It could be because of a dependency upgrade. Please check for the updated method in documentation itself
@chiragmatta9171
@chiragmatta9171 3 жыл бұрын
Can you please make tutorial on reactive programing with Kafka and ActiveMQ
@SarateanuDima
@SarateanuDima 3 жыл бұрын
Why do you use jUnit 4 not 5?
@Javatechie
@Javatechie 3 жыл бұрын
I just imported as Intelij suggested but we can add junit 5
@paragmangal3796
@paragmangal3796 3 жыл бұрын
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
@shakhzodkamolov4027
@shakhzodkamolov4027 Жыл бұрын
Great tutorials, than you so much.
@srinivasulupagadala
@srinivasulupagadala 3 жыл бұрын
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?
@Javatechie
@Javatechie 3 жыл бұрын
Okay I will
@asashish905
@asashish905 Жыл бұрын
But we should mock the repo and not service AFAIK.
@Javatechie
@Javatechie Жыл бұрын
Depends as per your usecase whether you are writing unit testing or integration test
@ogabeksaidov1986
@ogabeksaidov1986 3 жыл бұрын
Hi sir. Can ytou help me for create webclient in oauth2 using webflux? If you have encountered this problem before, please share with me.
@Javatechie
@Javatechie 3 жыл бұрын
What error you are getting
@ogabeksaidov1986
@ogabeksaidov1986 3 жыл бұрын
I don't know how to do that. Do you have a demo project on this?
@narendrakumar8832
@narendrakumar8832 3 жыл бұрын
Please create tutorial for spring mvc from scratch
@sraynitjsr
@sraynitjsr 3 жыл бұрын
Awesome ❤️❤️🔥🔥
@harshchidar3074
@harshchidar3074 2 жыл бұрын
Hi, Please add Junit for 500 Internal Server Error code(OnStatus ) using weblient.This will be great help if you provide.
@HariKrishna-mi6is
@HariKrishna-mi6is Жыл бұрын
Rename this video as Unit testing , not integration testing.
Spring Boot WebFlux - Video Streaming Example | JavaTechie
15:59
Java Techie
Рет қаралды 60 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Spring Boot Integration Test with TDD | JUnit5  & H2 | JavaTechie
45:27
What is Spring Webflux and when to use it?
17:46
Defog Tech
Рет қаралды 247 М.
Microservices using SpringBoot | Full Example
1:21:39
Daily Code Buffer
Рет қаралды 1 МЛН
Creating SOAP Web Service in Spring
31:34
Developer Hut
Рет қаралды 72