@Test public void clientAuthenticationErrorPage() { assertNotNull(errorController.clientAuthenticationErrorPage(request)); verify(controllerUtils).buildErrorModelAndView(argThat(new HasPropertyWithValue<>("mainMessageCode", is(HodErrorController.MESSAGE_CODE_CLIENT_AUTHENTICATION_ERROR_MAIN)))); }
@RequestMapping(DispatcherServletConfiguration.CLIENT_AUTHENTICATION_ERROR_PATH) public ModelAndView clientAuthenticationErrorPage(final HttpServletRequest request) { return controllerUtils.buildErrorModelAndView(new ErrorModelAndViewInfo.Builder() .setRequest(request) .setMainMessageCode(MESSAGE_CODE_CLIENT_AUTHENTICATION_ERROR_MAIN) .setSubMessageCode(MESSAGE_CODE_CLIENT_AUTHENTICATION_ERROR_SUB) .setStatusCode(HttpStatus.SC_INTERNAL_SERVER_ERROR) .setButtonHref(getAuthenticationErrorUrl(request)) .build()); }
HodErrorController extends CustomErrorController { @RequestMapping(DispatcherServletConfiguration.CLIENT_AUTHENTICATION_ERROR_PATH) public ModelAndView clientAuthenticationErrorPage(final HttpServletRequest request) { return controllerUtils.buildErrorModelAndView(new ErrorModelAndViewInfo.Builder() .setRequest(request) .setMainMessageCode(MESSAGE_CODE_CLIENT_AUTHENTICATION_ERROR_MAIN) .setSubMessageCode(MESSAGE_CODE_CLIENT_AUTHENTICATION_ERROR_SUB) .setStatusCode(HttpStatus.SC_INTERNAL_SERVER_ERROR) .setButtonHref(getAuthenticationErrorUrl(request)) .build()); } }
HodErrorController extends CustomErrorController { @RequestMapping(DispatcherServletConfiguration.CLIENT_AUTHENTICATION_ERROR_PATH) public ModelAndView clientAuthenticationErrorPage(final HttpServletRequest request) { return controllerUtils.buildErrorModelAndView(new ErrorModelAndViewInfo.Builder() .setRequest(request) .setMainMessageCode(MESSAGE_CODE_CLIENT_AUTHENTICATION_ERROR_MAIN) .setSubMessageCode(MESSAGE_CODE_CLIENT_AUTHENTICATION_ERROR_SUB) .setStatusCode(HttpStatus.SC_INTERNAL_SERVER_ERROR) .setButtonHref(getAuthenticationErrorUrl(request)) .build()); } @Autowired  HodErrorController(final ControllerUtils controllerUtils, final ConfigService<HodFindConfig> configService); }
HodErrorController extends CustomErrorController { @RequestMapping(DispatcherServletConfiguration.CLIENT_AUTHENTICATION_ERROR_PATH) public ModelAndView clientAuthenticationErrorPage(final HttpServletRequest request) { return controllerUtils.buildErrorModelAndView(new ErrorModelAndViewInfo.Builder() .setRequest(request) .setMainMessageCode(MESSAGE_CODE_CLIENT_AUTHENTICATION_ERROR_MAIN) .setSubMessageCode(MESSAGE_CODE_CLIENT_AUTHENTICATION_ERROR_SUB) .setStatusCode(HttpStatus.SC_INTERNAL_SERVER_ERROR) .setButtonHref(getAuthenticationErrorUrl(request)) .build()); } @Autowired  HodErrorController(final ControllerUtils controllerUtils, final ConfigService<HodFindConfig> configService); @RequestMapping(DispatcherServletConfiguration.CLIENT_AUTHENTICATION_ERROR_PATH) ModelAndView clientAuthenticationErrorPage(final HttpServletRequest request); }
HodErrorController extends CustomErrorController { @RequestMapping(DispatcherServletConfiguration.CLIENT_AUTHENTICATION_ERROR_PATH) public ModelAndView clientAuthenticationErrorPage(final HttpServletRequest request) { return controllerUtils.buildErrorModelAndView(new ErrorModelAndViewInfo.Builder() .setRequest(request) .setMainMessageCode(MESSAGE_CODE_CLIENT_AUTHENTICATION_ERROR_MAIN) .setSubMessageCode(MESSAGE_CODE_CLIENT_AUTHENTICATION_ERROR_SUB) .setStatusCode(HttpStatus.SC_INTERNAL_SERVER_ERROR) .setButtonHref(getAuthenticationErrorUrl(request)) .build()); } @Autowired  HodErrorController(final ControllerUtils controllerUtils, final ConfigService<HodFindConfig> configService); @RequestMapping(DispatcherServletConfiguration.CLIENT_AUTHENTICATION_ERROR_PATH) ModelAndView clientAuthenticationErrorPage(final HttpServletRequest request);  }