Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver1
16いいね 344 views回再生

Chapter-23: Unit Testing | Spring REST

In this video I have explained how to do the unit testing of Spring Boot application using JUnit 5 and Mockito. While we will focus on testing unit of controller layer, we will also writes testcases for service and repository for a completeness.

Don’t forget to like, comment, and share with other developers!

For educational purposes only.
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
You can download the code shown in video from : https://github.com/abhishekvermaa10/S...
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Timeline:
00:00:00 Introduction
00:01:21 Recap of Demo-19
00:02:33 Creating Demo-20
00:11:50 Unit Testing Repository Layer
00:21:45 Unit Testing Service Layer
00:29:30 Unit Testing Controller Layer
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Software Requirements:
• Java 21: https://www.oracle.com/in/java/techno...
• Spring Tool Suite 4: https://spring.io/tools
• MySQL: https://dev.mysql.com/downloads
• DBeaver: https://dbeaver.io/download
• Postman: https://www.postman.com/downloads
• Git: https://git-scm.com/downloads
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Connect with me:
• Website: https://abhishekvermaa10.github.io
• YouTube:    / @abhishekvermaa10  
• LinkedIn:   / abhishekvermaa10  
• Instagram:   / abhishekvermaa10  
• X: https://x.com/ytabhishekverma
• GitHub: https://github.com/abhishekvermaa10
• TopMate: https://topmate.io/abhishekvermaa10
• GMail: scaleupindiayt@gmail.com
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Download and Install videos:
• Java 21:    • Download and Install Java 21 | Works ...  
• Spring Tool Suite (STS) 4:    • Download and Install Spring Tool Suit...  
• MySQL 8.4:    • Download and Install MySQL Community ...  
• DBeaver:    • How to Install DBeaver and Connect to...  
• Postman:    • Download and Install Postman  
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Binge watch videos and playlists:
• Daily Interview series:    • Concept-in-a-Minute  
• Daily Code series:    • Shorts 2025  
• Multithreading:    • Chapter-04: Unlocking the Multithread...  
• Concurrency:    • Chapter-05: Mastering Concurrency in ...  
• Generics:    • Chapter-02: How Generics Simplify Dat...  
• Collection Framework:    • Chapter-03: Say Goodbye to Arrays: Th...  
• Exception Handling:    • Chapter-01: Java Exception Handling: ...  
• Lambda Expression:    • Chapter-06: Supercharge Java Projects...  
• Streams API:    • Chapter-07: Stream API Decoded: Trans...  
• Optional Class:    • Chapter-08: Null No More: Master Java...  
• DateTime API:    • Chapter-09: Untold Stories of Java Da...  
• JDBC:    • Java Database Connectivity (JDBC)  
• Maven:    • Maven  
• Hibernate:    • Hibernate  
• Spring Basics with Spring Boot:    • Spring Basics with Spring Boot  
• Spring Data JPA with Spring Boot:    • Spring Data JPA with Spring Boot  
• Spring REST with Spring Boot:    • Spring REST with Spring Boot  
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Copyright © 2025 Abhishek Verma - All Rights Reserved

コメント