Spring Boot testing Using Junit and Mockito
ฝัง
- เผยแพร่เมื่อ 29 ก.ย. 2024
- Hi Friends,
#GainJavaKnowledge
In this video we will learn how to write junit test cases using mockito framework for all layers like controller, service and repository layer.
github link to download source code :
===============================
github.com/sum... - วิทยาศาสตร์และเทคโนโลยี
Great stuff, thanks a lot!!
value added stuff good one
Man, you are a master, great explanation and best practices, thank you so much!
Thanks Isaac
I think your video need some corrections, As Repository Layer is interacting with the database.So, you need to use a database rather than mockito.
It is not good practice to communicate with the database while executing our junit test cases. So we always assume our db connection is working fine and use mock data for testing.
This is true but for testing repository you need to use database.But then you will use either embedded database or docker test container.@@GainJavaKnowledge
Great content ❤
Thanks
where is the part 1?
I want to see the sql table
Thk, Excelent 👍
👍🏻
Very nicely explained all the layers👍
Thanks Abhinav gautam
Thanks men
Please provide the code git repository
In description I have added the link to download the source code from git repo
THANKS BROTHER...😍
👍🏻