Java, Software Development, Spring

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

You Might Also Like

Leave a Reply

Your email address will not be published. Required fields are marked *