Adding expectations for the rendered output reveals annother misconception
authorKai Moritz <kai@juplo.de>
Fri, 2 Oct 2020 13:46:09 +0000 (15:46 +0200)
committerKai Moritz <kai@juplo.de>
Fri, 2 Oct 2020 17:19:05 +0000 (19:19 +0200)
commita45ca1cc78cc207eb165c203e0295b41852f4f58
tree237e55f3360088e2c3565c250e51deb183488b6c
parentc8d1c555000b34d2bdd97b4ae385405b36311dd3
Adding expectations for the rendered output reveals annother misconception

* Added Jsoup to check some expectations regarding the rendered pages.
* This revealed another misconception about the behaviour of MockMvc.
* The MockMvc-environment does not render a full version of the White Label
  ErrorPage, that Spring-Boot shows for uncaught exceptions.
pom.xml
src/test/java/de/juplo/demo/ExceptionHandlingApplicationTests.java