Spring Boot testing Using Junit and Mockito

  Рет қаралды 35,885

Gain Java Knowledge

Gain Java Knowledge

2 жыл бұрын

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/sumitMultani/sprin...

Пікірлер: 18
@isaaclozanolopez9435
@isaaclozanolopez9435 2 жыл бұрын
Man, you are a master, great explanation and best practices, thank you so much!
@GainJavaKnowledge
@GainJavaKnowledge 2 жыл бұрын
Thanks Isaac
@nantiyachomtee2998
@nantiyachomtee2998 Жыл бұрын
Great stuff, thanks a lot!!
@abhinavgautam3572
@abhinavgautam3572 Жыл бұрын
Very nicely explained all the layers👍
@GainJavaKnowledge
@GainJavaKnowledge Жыл бұрын
Thanks Abhinav gautam
@punyabikash3624
@punyabikash3624 Ай бұрын
Great content ❤
@GainJavaKnowledge
@GainJavaKnowledge Ай бұрын
Thanks
@dynamicsid8795
@dynamicsid8795 Жыл бұрын
Thanks men
@samuelarone7659
@samuelarone7659 8 ай бұрын
Thk, Excelent 👍
@GainJavaKnowledge
@GainJavaKnowledge 7 ай бұрын
👍🏻
@valorant563
@valorant563 Жыл бұрын
where is the part 1? I want to see the sql table
@rajeshgubbala8882
@rajeshgubbala8882 7 ай бұрын
THANKS BROTHER...😍
@GainJavaKnowledge
@GainJavaKnowledge 7 ай бұрын
👍🏻
@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
@ShikbeTumio
@ShikbeTumio 7 ай бұрын
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 7 ай бұрын
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 7 ай бұрын
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
Mockito Tutorial - Mocking With Junit and Maven
1:11:53
in28minutes - Get Cloud Certified
Рет қаралды 541 М.
Test Spring Boot REST API using JUnit
19:05
B2 Tech
Рет қаралды 75 М.
Java Unit Testing with JUnit - Tutorial - How to Create And Use Unit Tests
21:35
🔥🔥Unit Testing in Spring Boot Project in one video ||  Crash Course
58:18
Learn Code With Durgesh
Рет қаралды 202 М.
Spring Mvc unit test using Mockito + MockMVC | Java Techie
30:12
Java Techie
Рет қаралды 108 М.
Spring Boot Unit Testing With Mockito - Mocking Explained
15:30
Teddy Smith
Рет қаралды 24 М.
124.Spring Boot Rest Controller Junit Testing
11:15
KK JavaTutorials
Рет қаралды 64 М.
Mockito JUnit Example
18:53
Telusko
Рет қаралды 326 М.
Spring Boot API Generic Response
31:48
Gain Java Knowledge
Рет қаралды 762
cute mini iphone
0:34
승비니 Seungbini
Рет қаралды 4,8 МЛН