Class org.lightningj.paywall.spring.SpringPaywallExceptionHandlerSpec

10

tests

0

failures

0

ignored

0.067s

duration

100%

successful

Tests

Test Duration Result
Verify that handleException for websocket without any customized error message uses message from exception, if exception is not internal error. 0.002s passed
Verify that handleException with a list of customized error messages includes all customized messages 0.004s passed
Verify that handleException with one customized error message includes customized message 0.001s passed
Verify that handleException without any customized error message uses message from exception, if exception is not internal error. 0.060s passed
Verify that http response code 400 BAD_REQUEST and prefix Invalid Request is returned for exception of type IllegalArgumentException 0s passed
Verify that http response code 401 UNAUTHORIZED and prefix JWT Token Problem is returned for exception of type TokenException 0s passed
Verify that http response code 500 INTERNAL_SERVER_ERROR and prefix Internal Server Error is returned for exception of type InternalErrorException 0s passed
Verify that http response code 500 INTERNAL_SERVER_ERROR and prefix Internal Server Error is returned for exception of type TestException 0s passed
Verify that http response code 503 SERVICE_UNAVAILABLE and prefix Internal Communication Problems is returned for exception of type IOException 0s passed
Verify that reason code is set of TokenException is thrown 0s passed