views:

13

answers:

0

I have extended org.springframework.web.servlet.handler.SimpleMappingExceptionResolver to log and return custom error messages to my Spring MVC application.

My question is - how should I go about writing a JUnit test to check that the correct errors get returned when the associated Exceptions get thrown?