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

preview_player
Показать описание
This is the second video of the MockMvc mini-series. It covers testing REST API endpoints with MockMvc.

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

Рекомендации по теме
Комментарии
Автор

Great videos, thanks for sharing and request you to keep posting such high quality materials.

simi
Автор

Thank you so much for this! Great video

rafaelnunes
Автор

Great video, for a report with Spring boot you would also have to do tests ?

fernandoambrosio
Автор

Great video! Do you know why my controller unit test is skipping the Mockito method? It looks like the test just ignores it, thank you!

juanignacioolguin
Автор

what a "Location"? where is it?

АлександрБерестов-рэ