Spring Boot Testing - ** Batteries Included 🔋🔋

Sdílet
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 ❤️

Komentáře • 24

  • @user-sf8cs3sz2i
    @user-sf8cs3sz2i Před 9 měsíci +7

    This is exactly the video I was looking for. You have a sixth sense when it comes to making useful content Dan

  • @fabricioaraujo7642
    @fabricioaraujo7642 Před 10 měsíci +7

    For sure one of the top 3 spring yt channels !! Thanks for the content man

    • @ayushprasad8207
      @ayushprasad8207 Před 10 měsíci +1

      can you name the other two too, Dan is so good, would like to know more

    • @fabricioaraujo7642
      @fabricioaraujo7642 Před 10 měsíci +2

      @@ayushprasad8207 Josh long and spring developer :D

    • @ayushprasad8207
      @ayushprasad8207 Před 10 měsíci

      Thanks mate
      @@fabricioaraujo7642

    • @rsbah
      @rsbah Před 3 měsíci

      @@svenmaier3728 how did you post a blank comment 👀

  • @joachimdietl6737
    @joachimdietl6737 Před 10 měsíci +3

    You are such a good teacher i want to work with you!

  • @calebmbugua745
    @calebmbugua745 Před 4 měsíci +1

    wwoow,. Thank you Dan, veery well understood, Love from Kenya!

  • @stefanoforgiarini339
    @stefanoforgiarini339 Před 3 měsíci

    Great content! Thank you Dan for sharing your knowledge

  • @kosnowman
    @kosnowman Před 5 měsíci

    thanks dan, helps me steps into the world of testing

  • @kostiantynkarzhanov9216
    @kostiantynkarzhanov9216 Před 4 měsíci

    Great tutorial and very helpful! Thank you so much! 💛

  • @alimrad7760
    @alimrad7760 Před 10 měsíci +1

    Ohh thanks man , you do a lot of great content

  • @user-jq6mt1wc7t
    @user-jq6mt1wc7t Před 2 měsíci

    Great video, thank you for making such good content

  • @birbir969
    @birbir969 Před 10 měsíci

    happy coding!!! Thank you very much !

  • @peshutanpavri1599
    @peshutanpavri1599 Před 6 měsíci

    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 ?

  • @ayanchakraborty7842
    @ayanchakraborty7842 Před 9 měsíci

    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.😊😊

  • @leonroy8953
    @leonroy8953 Před 8 měsíci

    Thanks!

  • @uhuebner
    @uhuebner Před 10 měsíci +1

    Pleeeeease start putting chapters in your long videos!

  • @rnwadinobi
    @rnwadinobi Před 5 měsíci

    Hey love the videos but im getting a nullpointer exception when using findall and not sure where its coming from

  • @__nitinkumar__
    @__nitinkumar__ Před měsícem

    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.

  • @sairamreddy500
    @sairamreddy500 Před 5 měsíci

    Do you have an junit example on resclient mocking get method?