@Test public void shouldCleanupAfterProcessing() throws Exception { unit.afterCompletion(httpServletRequest, httpServletResponse, new Object(), null); verify(mockedBackend).clear(); }
@Override public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object o, Exception e) { try { writeHeaderIfUncommitted(response); } finally { backend.clear(); } }
TraceeInterceptor implements HandlerInterceptor { @Override public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object o, Exception e) { try { writeHeaderIfUncommitted(response); } finally { backend.clear(); } } }
TraceeInterceptor implements HandlerInterceptor { @Override public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object o, Exception e) { try { writeHeaderIfUncommitted(response); } finally { backend.clear(); } } TraceeInterceptor();  TraceeInterceptor(TraceeBackend backend); }
TraceeInterceptor implements HandlerInterceptor { @Override public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object o, Exception e) { try { writeHeaderIfUncommitted(response); } finally { backend.clear(); } } TraceeInterceptor();  TraceeInterceptor(TraceeBackend backend); @Override boolean preHandle(final HttpServletRequest request, final HttpServletResponse response, final Object o); @Override void postHandle(HttpServletRequest request, HttpServletResponse response, Object o, ModelAndView modelAndView); @Override void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object o, Exception e); void setOutgoingHeaderName(String outgoingHeaderName); void setIncomingHeaderName(String incomingHeaderName); String getProfileName(); void setProfileName(String profileName); }
TraceeInterceptor implements HandlerInterceptor { @Override public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object o, Exception e) { try { writeHeaderIfUncommitted(response); } finally { backend.clear(); } } TraceeInterceptor();  TraceeInterceptor(TraceeBackend backend); @Override boolean preHandle(final HttpServletRequest request, final HttpServletResponse response, final Object o); @Override void postHandle(HttpServletRequest request, HttpServletResponse response, Object o, ModelAndView modelAndView); @Override void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object o, Exception e); void setOutgoingHeaderName(String outgoingHeaderName); void setIncomingHeaderName(String incomingHeaderName); String getProfileName(); void setProfileName(String profileName);  }