DEV Community

loading...

Discussion on: My first ever unit test

Collapse
borgerstoon profile image
Toon Borgers

Another (Spring specific tip): ResponseEntity has helper factory methods to get a response for a specific status. See here for some examples (starting from Furthermore, ResponseEntity provides two nested builder interfaces)

Collapse
bassemmohamed profile image
Bassem Ibrahim👨‍💻🇪🇬 Author

Good point, Didn't know that before.