This helps debugging when a test fails, as you not only get the status code (something like 4xx/5xx), but also the content body.
Would seem doable to pick up as a recipe to aid that migration, so figured pitch it here for anyone willing to work on that (or until I find the time).
Spring Framework 5.3 added support for soft assertions to MockMvc, as detailed on slides 36 & 37 here.
These allow you to check multiple conditions and report on all of them, rather than just report on the first one that fails.
This helps debugging when a test fails, as you not only get the status code (something like 4xx/5xx), but also the content body.
Would seem doable to pick up as a recipe to aid that migration, so figured pitch it here for anyone willing to work on that (or until I find the time).