@Test public void testPostHandle_not_call_afterPropertiesSet() throws Exception { testTarget.postHandle(mockRequest, mockResponse, null, null); assertThat(mockRequest.getAttributeNames().hasMoreElements(), is( false)); }
@Override public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception { if (codeLists == null) { return; } for (CodeList codeList : codeLists) { String attributeName = codeList.getCodeListId(); request.setAttribute(attributeName, codeList.asMap()); } }
CodeListInterceptor implements HandlerInterceptor,
                                 ApplicationContextAware, InitializingBean { @Override public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception { if (codeLists == null) { return; } for (CodeList codeList : codeLists) { String attributeName = codeList.getCodeListId(); request.setAttribute(attributeName, codeList.asMap()); } } }
CodeListInterceptor implements HandlerInterceptor,
                                 ApplicationContextAware, InitializingBean { @Override public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception { if (codeLists == null) { return; } for (CodeList codeList : codeLists) { String attributeName = codeList.getCodeListId(); request.setAttribute(attributeName, codeList.asMap()); } }  }
CodeListInterceptor implements HandlerInterceptor,
                                 ApplicationContextAware, InitializingBean { @Override public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception { if (codeLists == null) { return; } for (CodeList codeList : codeLists) { String attributeName = codeList.getCodeListId(); request.setAttribute(attributeName, codeList.asMap()); } }  @Override void postHandle(HttpServletRequest request,
            HttpServletResponse response, Object handler,
            ModelAndView modelAndView); @Override void afterPropertiesSet(); @Override void setApplicationContext(ApplicationContext applicationContext); void setCodeListIdPattern(Pattern codeListIdPattern); }
CodeListInterceptor implements HandlerInterceptor,
                                 ApplicationContextAware, InitializingBean { @Override public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception { if (codeLists == null) { return; } for (CodeList codeList : codeLists) { String attributeName = codeList.getCodeListId(); request.setAttribute(attributeName, codeList.asMap()); } }  @Override void postHandle(HttpServletRequest request,
            HttpServletResponse response, Object handler,
            ModelAndView modelAndView); @Override void afterPropertiesSet(); @Override void setApplicationContext(ApplicationContext applicationContext); void setCodeListIdPattern(Pattern codeListIdPattern);  }