0

Spring MVC – How to test for view name

This post briefly demonstrates how to test for a view name in Spring MVC.

Stuff Used

  • Spring Boot 2.1.1.RELEASE
  • JDK 8

Controller

We have a single controller that maps to “/”.

View

Unit Test

Karl San Gabriel

Karl San Gabriel

Java and Enterprise Technologies Expert