Город МОСКОВСКИЙ
00:10:11

Perform HTTP GET and POST Requests MockMvc to Test a @RestController

Аватар
Творчество с умными помощниками
Просмотры:
25
Дата загрузки:
02.12.2023 04:20
Длительность:
00:10:11
Категория:
Обучение

Описание

This is the second video of the MockMvc mini-series. It covers testing REST API endpoints with MockMvc.

Part I: https://youtu.be/sxWNJJ4dKJo
Part II: https://youtu.be/Aasp0mWT3Ac
Part III: https://youtu.be/d7TDoGSZCoc
Part IV: https://youtu.be/oLtXe1wgSC8

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-tutorials/tree/master/testing-spring-boot-applications-with-mockmvc

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-boot-applications-masterclass/

» Revamp your Testing Knowledge with this 14 Days Free Email Course on Testing Java Applications: https://rieckpil.de/getting-started-with-testing-java-applications-email-course/

Рекомендуемые видео