Http Error Handler is not called in Unit Test

41 views
Skip to first unread message

Parani Raja

unread,
Apr 24, 2017, 4:39:29 PM4/24/17
to Play Framework
Hi,

I am currently working on Play upgrade from 2.3 to 2.5. Using Spring as DI, used Spring loaded provided by Remi, https://github.com/remithieblin/play-spring-loader.

For Unit Testing, using Spring + Junit4 Runner, in that application is created using Spring Application Builder. Test application is started normally, however if any CustomException is thrown in Controller, it it not being handled by DefaultHttpErrorHandler or custom ErrorHandler, 

This code works fine in Dev mode, onServerError is called.

I am using Helpers class route method to invoke routes.

Any thoughts on this.

Thanks,
Parani
Reply all
Reply to author
Forward
0 new messages