Spring Boot Unit Testing with JUnit, Mockito and MockMvc - Part 1

preview_player
Показать описание
#testing #unittesting #junit5 #junit #java #mocktest #mock #mockito #springboot #springunittesting

Timestamps:
--
08:21 - Write JUnit Test Case for Save Operation
15:23 - Adding Custom Name to Test Case
16:40 - Write JUnit Test Case for Read Operation
22:39 - Write JUnit Test Case to Read Single Record
27:33 - Write JUnit Test Case for Update Operation
34:09 - Write JUnit Test Case for Delete Operation
38:20 - Write JUnit Test Case for JPA Query method
42:25 - Refactor the JUnit Test Cases to use BeforeEach annotation
--
Find the source at Github:
--
Build Production Ready REST API with Spring Boot - Expense Tracker API
--
Build Spring Boot and Thymeleaf Real Time Web Application - Expense Manager
--
Full stack development with React (React Hooks) and Spring Boot
--
JSP and Servlets Complete Course
--
🤑🤑 Donate
--
Gear I use -
--
For Business Inquiries Email @
--
Follow me to stay updated -
--
Рекомендации по теме
Комментарии
Автор

these are best video to get the clear clarity of topic . i regret i wasted my time on other channels

smritirani
Автор

Can you share the link of video that you uploaded earlier for spring boot unit test which covered for repository layer

udhayasankar
Автор

I am getting an error to load the applicationcontext in repository test can you tell me how to resolve this issue?

debrajsom
Автор

Hi, I am getting this error while running Junit tests for repository layer.. I added @DataJpaTest but ..get this
Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...)
Also I am getting component scan error if I don't add these below lines


@ComponentScan({"com.movie.Controller", "com.movie.Repository", "com.movie.Service"})
in the main application.

please clarify this
Thanks in advance

akhilcharugulla