Test Spring Boot REST API using JUnit

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024
  • Find the source code here -
    bushansirgur.i...
    🤑🤑 Donate
    + / @b2tech
    + www.instamojo....
    --------------------------------------
    Gear I use - bushansirgur.i...
    --------------------------------------
    🐱‍💻 🐱‍💻 Course Links:
    Spring boot and Mongodb Tutorial -
    • Spring boot and MongoD...
    Spring boot, Hibernate, and MySQL API Tutorial -
    • Spring boot + Hibernat...
    Spring boot, JPA and MySQL API Tutorial -
    • Spring boot + JPA + My...
    RESTful web services with Nodejs, Express, Mongodb Tutorial -
    • NodeJS, Express, Mongo...
    Angular and Spring boot full-stack Tutorial -
    • Angular 9 and Spring B...
    Spring MVC and MyBatis/iBatis Tutorial -
    • Spring MVC and MyBatis...
    JSP and Servlets Complete Tutorial for beginners -
    • JSP and Servlet Tutorial
    For Business Inquiries Email @
    bushan1992@zohomail.in
    Follow me to stay updated -
    1. Github - github.com/scb...
    2. Udemy - udemy.com/user...
    3. LinkedIn - / bushan-sc
    4. Instagram - / bushan_sirgur

Комментарии • 33

  • @Vgang101
    @Vgang101 2 года назад +5

    Change yout title, you are not testing the REST API. You are testing the repo not the REST controller. Thanks

  • @psps1354
    @psps1354 3 года назад +5

    Where have you created rest APIs and called rest APIs

  • @mikegames4659
    @mikegames4659 2 года назад +1

    Nice VIdeo Covers all basic methods. Thanks BRO

  • @chetanbhandari3033
    @chetanbhandari3033 3 года назад +5

    Thanks Bhushan, please create complete Play list

  • @wadigzonDiazwong
    @wadigzonDiazwong 3 года назад +15

    Not testing the rest API, just testing the Repo (DB part)

    • @vakkalahari5449
      @vakkalahari5449 2 года назад

      correct

    • @alpozer2139
      @alpozer2139 2 года назад +1

      this is what ı looking for

    • @sumitsehgal7714
      @sumitsehgal7714 Год назад +1

      Making fool 🤣🤣 or may be he even don't know difference between repo or api

    • @B2Tech
      @B2Tech  Год назад

      Spring Boot Unit Testing and Integration Testing with JUnit, Mockito and MockMvc - [2022]
      ruclips.net/video/pHTr3IMuRh0/видео.html

  • @createsinc
    @createsinc Год назад +2

    Thank-youuu so much!!!

    • @B2Tech
      @B2Tech  Год назад +1

      You're welcome!!

  • @kirane5911
    @kirane5911 Год назад +1

    Thanks for good Explanation

  • @bhaktilatadash7619
    @bhaktilatadash7619 3 года назад +8

    Thank u thank u so much ..... 🙏🙏🙏🙏🙏🙏🙏🙏there is no words to convey my gratitude ... 🙏🙏🙏🙏but one doubt as l know we should not touch database in unit testing .. we should give dummy data to test the rest Api... Please clear my doubt.... Please make a video on mockito testing by taking dummy data🙏🙏🙏🙏🙏🙏

  • @varun104
    @varun104 2 года назад +3

    WHERE is the API testing ? Just Repo ?

  • @VinayakMore0914
    @VinayakMore0914 2 года назад +2

    This is not a rest api, just a spring data jpa unit test :(

  • @yanvolkovich1414
    @yanvolkovich1414 2 года назад +2

    SUPER!!!!!!!!!!!!! THANK YOU!!!!!!!!!!!!!!!!!

  • @giridharsai6562
    @giridharsai6562 Год назад +1

    How to implement the same thing using postman at the last ..can you please tell it in a simple way?

  • @owenmurphy2022
    @owenmurphy2022 Год назад +1

    this is testing jpa calls, NOT user defined Rest Controllers. This is a bit misleading.

    • @B2Tech
      @B2Tech  Год назад

      Check my latest videos
      ruclips.net/p/PLA7e3zmT6XQV2LWQYH-H8sb1_psF68HWN

  • @andersongama2469
    @andersongama2469 Год назад

    THANK YOU SO MUCH!!!!

  • @techfacts1604
    @techfacts1604 2 года назад +1

    How can we directly hit the database

  • @ashishchamoli3326
    @ashishchamoli3326 2 года назад +1

    Thanks 🤝

  • @maddipatlamadhura4140
    @maddipatlamadhura4140 3 года назад +2

    How to get JUNIT screen below. I am getting left side.

    • @B2Tech
      @B2Tech  3 года назад

      Drag n drop it down

  • @thurlukulasekhar223
    @thurlukulasekhar223 Год назад

    Where is rest API testing

  • @vndprasadgrandhi7024
    @vndprasadgrandhi7024 3 года назад +1

    Awesome video..Please do like these videos for Exception handling.

    • @B2Tech
      @B2Tech  3 года назад

      Sure 👍

  • @sailaxmid7250
    @sailaxmid7250 Год назад

    Please write a junit test cases for books example bhushan..like book id,name,author and price..please write test cases for this crud example

  • @sandhyaaa24
    @sandhyaaa24 3 года назад

    nullpointerexception showing ???

  • @juanignaciocaballero1638
    @juanignaciocaballero1638 2 года назад +1

    How did you do to have that dark mode in mysql workbench?

    • @B2Tech
      @B2Tech  2 года назад

      If yu use latest MySQL workbench then yu ll get tht option.

  • @yuvrajmohanty3186
    @yuvrajmohanty3186 3 года назад

    Sir, without dialect how can it hit the database