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...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 19

  • @nantiyachomtee2998
    @nantiyachomtee2998 ปีที่แล้ว

    Great stuff, thanks a lot!!

  • @ManishNegi-il1kf
    @ManishNegi-il1kf 2 หลายเดือนก่อน +1

    value added stuff good one

  • @isaaclozanolopez9435
    @isaaclozanolopez9435 2 ปีที่แล้ว +1

    Man, you are a master, great explanation and best practices, thank you so much!

  • @ShikbeTumio
    @ShikbeTumio 10 หลายเดือนก่อน

    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.

    • @GainJavaKnowledge
      @GainJavaKnowledge  10 หลายเดือนก่อน

      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.

    • @ShikbeTumio
      @ShikbeTumio 10 หลายเดือนก่อน

      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

  • @punyabikash3624
    @punyabikash3624 4 หลายเดือนก่อน +1

    Great content ❤

  • @valorant563
    @valorant563 ปีที่แล้ว

    where is the part 1?
    I want to see the sql table

  • @samuelarone7659
    @samuelarone7659 11 หลายเดือนก่อน +1

    Thk, Excelent 👍

  • @abhinavgautam3572
    @abhinavgautam3572 ปีที่แล้ว +1

    Very nicely explained all the layers👍

  • @dynamicsid8795
    @dynamicsid8795 ปีที่แล้ว

    Thanks men

  • @sujeetsharma1006
    @sujeetsharma1006 ปีที่แล้ว

    Please provide the code git repository

    • @GainJavaKnowledge
      @GainJavaKnowledge  ปีที่แล้ว

      In description I have added the link to download the source code from git repo

  • @rajeshgubbala8882
    @rajeshgubbala8882 11 หลายเดือนก่อน

    THANKS BROTHER...😍