Thanks a lot, the most comprehensive video on youtube, watched like 3 other before this one... everywhere lots of unneeded information, unnecessary repetitions of useless information. Your video is exactly on the topic, nothing more, nothing else. Please make more videos of that kind :)
Thank god you popped out as I was looking for a mockito tutorial. Clear explanation, good speed, HD quality, and understandable examples. You're doing great, keep it up!👍 🔥
A mock won’t have the method executed. If you want the real method executed you can use a spy, which then allows you to mock other methods, or a real instance
Thanks, nobody explain what when and thenReturn do, and is very simple, is, when you executed this Injected Class, simulate (thenReturn) with the data is in the setup or init or before method annotated.
Like I am test testing the business service layer of my spring rest web project with Spring data jpa . So should I create mock stubs for repository interfaces for testing the Business layer which is interacting with DAO layer?
Very helpful videos. Thank you again. One thing I faced was mock object could not be created. I was getting: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module Thank I had to add jvm argument: --illegal-access=warn --add-opens java.base/java.lang=ALL-UNNAMED
Thanks a lot, the most comprehensive video on youtube, watched like 3 other before this one... everywhere lots of unneeded information, unnecessary repetitions of useless information. Your video is exactly on the topic, nothing more, nothing else. Please make more videos of that kind :)
Thank you so much!!
Thank god you popped out as I was looking for a mockito tutorial. Clear explanation, good speed, HD quality, and understandable examples. You're doing great, keep it up!👍 🔥
Thanks a lot for your comment!! Glad it could help!!
This channel is underrated. Subscribed!
Thank you!
Man I was so confused when I saw when and thenReturn in my org's code, thank you so much for this video. You saved me.
I’m really glad it helped! Thank you!!
Superb teaching. Keep it up. Bravo!
Hey man a little late here, but I hope you're doing well. I loved the series and helped me adapt to my new work super fast!
That’s so nice to hear! Thank you!!
simple and best explanation of the concept..It would be awesome to see more detailed videos with other options of Mockito.
Thanks! More mockito from next week
This is the one. This is the video I was seeking. Thanks!!
Thank you!!
very nice explanation and very pleasant voice. keep going!
Thank you!
what a great video! thank you so much! it was better than googling around for 1 hr+!
Thank you!!
Thanks for the video! The GitHub Repo link was much useful.
Thank you!
at 5:18, is the setup function be the same meaning as hotelDao annotated by @Mock?
Clear and concise. Wonderful video. Thanks for this
Thank you so much!
Clear and straight to the point, nice job!
Thank you!
Hi, Aneesh! How Are You? Very nice explanation!
great job (=
Thank you for this short and practical video!
Will it execute method which is mocked?
A mock won’t have the method executed. If you want the real method executed you can use a spy, which then allows you to mock other methods, or a real instance
Clear and concise. Keep it up!
Thank you!
Thanks, nobody explain what when and thenReturn do, and is very simple, is, when you executed this Injected Class, simulate (thenReturn) with the data is in the setup or init or before method annotated.
Exactly it, thanks Gonzalo!
Like I am test testing the business service layer of my spring rest web project with Spring data jpa . So should I create mock stubs for repository interfaces for testing the Business layer which is interacting with DAO layer?
Lovely men, so simple exaple to understand, i was Lost in complex examples. thank you 😊
Thank you!
YOUR ARE MY SAVIOUR BROTHER LOVE THIS PLAYLIST
Thank you so much!!
Best explanation. Thank you!
Thank you!
can you also make a video for REST API using Java ?
Hi Henry, please check out my Spring playlist where we create a fullstack MEAN application
Very helpful videos. Thank you again. One thing I faced was mock object could not be created.
I was getting:
Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module
Thank I had to add jvm argument: --illegal-access=warn --add-opens java.base/java.lang=ALL-UNNAMED
Brief and superb!
Thank you!
jeez, man, thank You so much
Glad it could help 😄
Simple and powerful!
Thank you!
Great tutorial
Thank you!
We need jacoco coverage video!
clear and concise explanation!
Thank you!
Very nice tutorial.
Thank you!
how to test if method return type is void ?
Hey Rahul, check out my video on Mockito Verify, where you can verify the behaviour of a void method. ruclips.net/video/lbN2nfsC7C4/видео.html
Mockito.doNothing
thanks
good accent and tutorial.
Thanks!
Sprit ful faith. Based mov. Mobjective