filmov
tv
Setup MockMvc to Test Your Spring MVC @Controller and @RestController in Isolation

Показать описание
This is the first video of the MockMvc mini-series. It covers the reasoning behind writing tests with MockMvc and how to create a MockMvc instance for your test.
Content:
0:00 Why plain unit tests are not enough for your web-layer
2:57 Insights to the @WebMvcTest annotation
4:10 Using the auto-configured MockMvc instance
6:17 Tweak the auto-configured MockMvc configuration
6:46 Create a MockMvc instance based on a WebApplicationContext
8:13 Use the standalone setup for a fine-grained MockMvc configuration
Content:
0:00 Why plain unit tests are not enough for your web-layer
2:57 Insights to the @WebMvcTest annotation
4:10 Using the auto-configured MockMvc instance
6:17 Tweak the auto-configured MockMvc configuration
6:46 Create a MockMvc instance based on a WebApplicationContext
8:13 Use the standalone setup for a fine-grained MockMvc configuration
Setup MockMvc to Test Your Spring MVC @Controller and @RestController in Isolation
Perform HTTP GET and POST Requests MockMvc to Test a @RestController
Use MockMvc to Test a Spring MVC Thymeleaf View @Controller Endpoint
How to write Junit test for Rest Controllers In Spring boot| MockMvc test
Configure MockMvc Junit test for Spring Projects | Integration Testing in Spring | JAVA - Part:- 1
Unit Testing in Spring Boot with JUnit 5 and Mockito | Part 1
MockMvc Test Setup With REST Assured and Spring Boot
Testing Controllers with MockMvc - Testing with Spring Boot - Part 8
Spring Mvc unit test using Mockito + MockMVC | Java Techie
Test Rest API's using WebMvcTest and MockMvc annotations | Testing in spring boot
Spring Boot 2x MockMVC
Test Protected (Spring Security) Controller Endpoints With MockMvc
Test a Secured Endpoint with REST Assured and MockMvc
Unit Testing of Spring MVC Controllers: Configuration
Using Spring MVC Test to Unit Test a Thymeleaf Index Page
Mastering MockMvc Testing: A Guide to Testing POST Methods in JUnit
Short And Concise Test Setup With @DataJpaTest and Testcontainers
Write Unit Test Case For Controller Layer using Junit & Mockito | @WebMvcTest |MockMvc
How to Inject beans in a unit test Using MockBean and InjectMocks
How to Create Unit Tests with MockMvc for Your REST Controller
Spring Boot Unit Testing With Mockito - Controllers
Spring Boot Integration Test Example REST API Controller | Java MockMvc
How to Fix Spring MVC Test Setup with MockMvc for Proper JSON Conversion
Spring Boot Testing | Writing JUnit Tests using JUnit and Mockito | Java Techie
Комментарии