@@fernandoambrosio1200 as such Spring MVC endpoints usually return byte[] you have to define what you want to actually test. It still makes sense to write an integration test and let your application generate a PDF or Excel. Afterward, you can e.g. use a PDF library to ensure important parts are present inside the document, e.g. customer number, dates, etc.
Great video! Do you know why my controller unit test is skipping the Mockito when(service.method()).thenReturn(value) method? It looks like the test just ignores it, thank you!
Great videos, thanks for sharing and request you to keep posting such high quality materials.
thanks a lot for your feedback :)
I have been looking for how to test controller thanks 🙏 a lot this really means a lot I will be looking forward to seeing this type of content
thanks you ! awesome material
Thank you so much for this! Great video
thank you very much for the video
Great video, for a report with Spring boot you would also have to do tests ?
what do you exactly mean with "a report"?
@@rieckpil If to generate an report in pdf and excel, I need to to perform tests. Excuse me for my english, I speak spanish.
@@fernandoambrosio1200 as such Spring MVC endpoints usually return byte[] you have to define what you want to actually test. It still makes sense to write an integration test and let your application generate a PDF or Excel. Afterward, you can e.g. use a PDF library to ensure important parts are present inside the document, e.g. customer number, dates, etc.
@@rieckpil Thanks so much.
Great video! Do you know why my controller unit test is skipping the Mockito when(service.method()).thenReturn(value) method? It looks like the test just ignores it, thank you!
Without seeing your test it's hard to tell :D
Can you post a question on Stack Overflow, include your controller and test setup and send me the link?
what a "Location"? where is it?
HTTP Location header of the response