Spring Boot Testing - ** Batteries Included 🔋🔋
Vložit
- čas přidán 21. 08. 2024
- In this tutorial you will learn what you get out of the box when it comes to testing your Spring Boot applications. When you create a new Spring Boot application at start.spring.io the spring-boot-starter-test dependency is added to your project for you. We also generate a test for you with a single method called `contextLoads()`.
It is important to know what libraries are included so that when you see tests you can identify what is happening.
🔗Resources & Links mentioned in this video:
GitHub Repo: github.com/dan...
Spring Boot Documentation: docs.spring.io...
👋🏻Connect with me:
Website: www.danvega.dev
Twitter: / therealdanvega
Github: github.com/dan...
LinkedIn: / danvega
Newsletter: www.danvega.de...
SUBSCRIBE TO MY CHANNEL: bit.ly/2re4GH0 ❤️
This is exactly the video I was looking for. You have a sixth sense when it comes to making useful content Dan
For sure one of the top 3 spring yt channels !! Thanks for the content man
can you name the other two too, Dan is so good, would like to know more
@@ayushprasad8207 Josh long and spring developer :D
Thanks mate
@@fabricioaraujo7642
@@svenmaier3728 how did you post a blank comment 👀
You are such a good teacher i want to work with you!
wwoow,. Thank you Dan, veery well understood, Love from Kenya!
Thank you
Great content! Thank you Dan for sharing your knowledge
thanks dan, helps me steps into the world of testing
Great tutorial and very helpful! Thank you so much! 💛
Ohh thanks man , you do a lot of great content
Great video, thank you for making such good content
happy coding!!! Thank you very much !
This is incredible, I was bashing my head against the wall, because there was so much documentation and so much info out there, You have provided a really good foundation, i have already done DataJpa, Unit tests, I will test this now,
When doing the full @SpringBootTest, is there any need to load the whole server ? Or is Mock Mvc with the real application context enough ?
Hi Dan, big fan your work here on this channel. I have a request....I want to learn developing event driven microservices using Spring boot reactive. I hope you see this and guide me through. I don't see any videos on this topic. Please make one. Untill then if you could provide me anything where I can pick up the basics. Thanking you in advance.😊😊
Thanks!
Pleeeeease start putting chapters in your long videos!
Hey love the videos but im getting a nullpointer exception when using findall and not sure where its coming from
Hi Dan, I have seen one issue, please tell me if there is good way.
My @Component class uses @Value for a field. Just so that I can inject it, I have to make my Test @SpringBootTest which take a lot of time to run, as it will start the application and stuff, create a dummy db, run migrations etc.
Is there any way to only inject the @Value, and not load db and stuff as it is not needed.
Do you have an junit example on resclient mocking get method?