Spring Boot Testing Tutorial - Part 1 | Unit Testing with JUnit 5 and Mockito

Поділитися
Вставка
  • Опубліковано 18 жов 2024

КОМЕНТАРІ • 67

  • @ProgrammingTechie
    @ProgrammingTechie  3 роки тому +6

    The method 'containsSwearWords' which is used for testing is not originally present in the original Reddit Clone tutorial, I added this method only for the sake of this tutorial, you can find the implementation of this method in the below link:
    www.github.com/SaiUpadhyayula/spring-boot-testing-reddit-clone/tree/master/src%2Fmain%2Fjava%2Fcom%2Fprogramming%2Ftechie%2Fspringredditclone%2Fservice%2FCommentService.java

  • @divinity5250
    @divinity5250 3 роки тому +12

    I loved your tutorials ❤️. Would like you to create playlist on "how to design and architect any project", covering class diagrams, oops concepts, which design pattern to choose according to requirement, loose coupling etc.

  • @asunali313
    @asunali313 2 роки тому +1

    after 2-3 days of reading/watching about test
    Finally, this helps.
    Thank you very match
    and live long

  • @kotikobillionaire281
    @kotikobillionaire281 2 роки тому +1

    Best testing video I have seen. Concise and to the point.

  • @MadalinGhirvu
    @MadalinGhirvu 4 роки тому +5

    Keep going, your channel is underrated for what you are offering and it deserve to grow

  • @MaryamMaqdisi
    @MaryamMaqdisi 2 роки тому +3

    Absolutely amazing, thanks for all the work you put in your videos!

  • @milad_mo
    @milad_mo 3 роки тому +1

    the best of junit 5 tutorial i have seen , good luck teacher

  • @pguti778
    @pguti778 Рік тому

    ExtendWith is junit5 and BeforeEach is junit4 😮. Anyhow, very good video!! subscribed!!

  • @sandyc1868
    @sandyc1868 3 роки тому +1

    Your vocab and diction is lit 🔥.

  • @Ivan-zc9ds
    @Ivan-zc9ds 3 роки тому +2

    Thank very much you for the videos. Hello from Russia.

  • @SivaKumar-zu1hc
    @SivaKumar-zu1hc 3 роки тому +1

    Your tutorial content and explanation deserve more views and likes. Keep going brother lots of love from your subscriber. If possible please add hash tags for your tutorials.

  • @nsumankrishna
    @nsumankrishna 4 роки тому +1

    Looking forward to the next one :) , really appreciate your work.

    • @ProgrammingTechie
      @ProgrammingTechie  4 роки тому

      The next tutorial is out - ua-cam.com/video/9UmwBfZ98U8/v-deo.html
      :)

  • @pranavmahajan4190
    @pranavmahajan4190 2 роки тому +1

    This is so amazing tutorial. Thanks man.

  • @marceldavidsandovalpatino6000
    @marceldavidsandovalpatino6000 2 роки тому +1

    Nice tutorial and good examples to explain mockito

  • @arturgrigoryan5175
    @arturgrigoryan5175 3 роки тому +2

    very nice explanation and flow

  • @projectsdb4034
    @projectsdb4034 2 роки тому +1

    Love it

  • @suryac850
    @suryac850 3 роки тому +1

    Thank you so much, this video is very simple and easy to understand.

  • @kappaj01
    @kappaj01 3 роки тому +2

    Great video! Like the shortcuts for IntelliJ.

  • @nguyenquan4836
    @nguyenquan4836 Рік тому +1

    Thank you so much

  • @nisal_pubudu
    @nisal_pubudu 3 роки тому +1

    Subscribed 👊🏻🔥

  • @saurabh7489
    @saurabh7489 3 роки тому +1

    Excellent video.
    Thank You.

  • @Mohamed-uf5jh
    @Mohamed-uf5jh 3 роки тому +1

    Great Job for great Man !

  • @natetolbert3671
    @natetolbert3671 4 роки тому

    after this series, you should do a simple e-commerce type application. Btw, still love your videos. Excellent work.

    • @ProgrammingTechie
      @ProgrammingTechie  4 роки тому +6

      Thanks, Nate. Plan is to build a UA-cam Clone Tutorial with react after this series :)

  • @hippiestafarii
    @hippiestafarii 4 роки тому

    View the video and implementation = DONE
    Can wait for the next one ...
    Thanks you for sharing :-)

  • @Rajnish089
    @Rajnish089 4 роки тому +1

    Please provide deep knowledge in testing using junit n mocito.. i dont see good playlist in youtube related to same

  • @navjot7397
    @navjot7397 4 роки тому

    Nice video, thanks!

  • @bevanrichards563
    @bevanrichards563 3 роки тому +1

    I am having finding parent in the repo so my project cannot build. Can someone please direct me, thanks

  • @vishnukthe_free_man
    @vishnukthe_free_man 3 роки тому +1

    Hi, the mockito code defined here with simple use cases is great. However i have one doubt. In post service there is a method getPostsBySubreddit(long id) in finding it hard to write an unit test for this method due to the presence of streams and method reference. Possible to help me with that one..?

    • @vishnukthe_free_man
      @vishnukthe_free_man 3 роки тому

      The main problem i face is with mocking streams and maper.maptodto static reference

  • @tanvishinde805
    @tanvishinde805 2 роки тому

    Hi! thanks for the tutorial, I had a question, in the last step , instead of using @BeforeEach method, we could have done @Autowired as well right?

    • @ProgrammingTechie
      @ProgrammingTechie  2 роки тому

      @BeforeEach executes the logic before each test, where as Autowired will just inject the dependency at the starting of the class, also we are not using the full spring context in this case, so that's not an option

  • @buildleadinnovate24
    @buildleadinnovate24 3 роки тому +1

    Thank you :) nd make video on integration testing too

  • @sreekanthbhagavatula
    @sreekanthbhagavatula 3 роки тому +6

    You should speak even faster so that we can learn even faster 🤪

  • @bhaktilatadash7619
    @bhaktilatadash7619 3 роки тому +1

    u r awosome dear but please use white theme ...dont use dark theme

  • @shubhamswaraj1968
    @shubhamswaraj1968 3 роки тому

    Please can u tell how to fix null pointer exception and no such element exception in junit

    • @ProgrammingTechie
      @ProgrammingTechie  3 роки тому

      hi, its hard to understand the context of the issue without looking at the code.

  • @kazarma974
    @kazarma974 3 роки тому +1

    Can you please tell me what's the name of the font you're using?

    • @ProgrammingTechie
      @ProgrammingTechie  3 роки тому

      i am using the default intellij font with gradianto theme

  • @osmanbahtiyar4167
    @osmanbahtiyar4167 3 роки тому

    Thanks

  • @rajansonvane488
    @rajansonvane488 2 роки тому +1

    Don't stop

  • @Basti1312
    @Basti1312 4 роки тому +1

    the method 'containsSwearWords' doesn't exist in the source code? (3:17min)

    • @ProgrammingTechie
      @ProgrammingTechie  4 роки тому

      I did not add it in the original source code as this method was added only for the sake of this tutorial, you can find it in the source code which contains the tests.
      www.github.com/SaiUpadhyayula/spring-boot-testing-reddit-clone/tree/master/src%2Fmain%2Fjava%2Fcom%2Fprogramming%2Ftechie%2Fspringredditclone%2Fservice%2FCommentService.java

    • @Basti1312
      @Basti1312 4 роки тому

      @@ProgrammingTechie great, thank you :)

    • @dims95
      @dims95 3 роки тому +1

      @@ProgrammingTechie Please pin this

    • @ProgrammingTechie
      @ProgrammingTechie  3 роки тому +2

      @@dims95 done

  • @morpheus4564
    @morpheus4564 3 роки тому +1

    what IDEA themes U have :)

  • @kokoloism
    @kokoloism 4 роки тому

    great video, tnx. No 2?

    • @ProgrammingTechie
      @ProgrammingTechie  4 роки тому +1

      Here it is - ua-cam.com/video/9UmwBfZ98U8/v-deo.html
      :)

  • @evertonagoravai162
    @evertonagoravai162 3 роки тому

    which theme use?