Configure MockMvc Junit test for Spring Projects | Integration Testing in Spring | JAVA - Part:- 1

preview_player
Показать описание
Namaste everyone,

Today we have started learning spring integration testing for our spring projects. This is the first part where we are configuring the MockMvc for the Junit test and just implemented the single Test function to check if we have configured correctly or not.

@WebAppConfiguration – which will load the web application context.

In the next part, we will be adding tests for our views that how to test if your controller is returning the views only.

Skip intro and can directly go to coding part:- 1:15

#java #junit #mockMvc #springframework #springTest #spring
Рекомендации по теме
Комментарии
Автор

Hi, thanks for the information, but I am getting null pointer of application context. Can you please help me.

CodeWithAbhiee
Автор

very informative, thank you for this tutorial

TrulyLordOfNothing
Автор

thanks !!! Pls upload video only spring with junit testing

komalajalkar