Perform HTTP GET and POST Requests MockMvc to Test a @RestController
Автор: Philip Riecks
Загружено: 2020-11-28
Просмотров: 20278
This is the second video of the MockMvc mini-series. It covers testing REST API endpoints with MockMvc.
Part I: • Setup MockMvc to Test Your Spring MVC @Con...
Part II: • Perform HTTP GET and POST Requests MockMvc...
Part III: • Use MockMvc to Test a Spring MVC Thymeleaf...
Part IV: • Test Protected (Spring Security) Controlle...
Content:
0:00 Test setup for the first endpoint
1:20 Use MockMvc to perform an HTTP GET request
2:28 Write expectations for the MockMvc result
5:58 Test the HTT POST endpoint
7:58 Write expectations the POST request to create a new user
Source code: https://github.com/rieckpil/blog-tuto...
More testing related content is available on my blog: https://rieckpil.de/
» Want to become an expert for testing Spring Boot applications? Join the Testing Spring Boot Applications Masterclass: https://rieckpil.de/testing-spring-bo...
» Revamp your Testing Knowledge with this 14 Days Free Email Course on Testing Java Applications: https://rieckpil.de/getting-started-w...
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: