@Test public void shouldNotRenderContextInResponseIfConfigurationDeniesIt() throws Exception { final TraceeFilterConfiguration customFilterConfiguration = mock(TraceeFilterConfiguration.class); when(customFilterConfiguration.shouldProcessContext(TraceeFilterConfiguration.Channel.OutgoingResponse)).thenReturn(false); final TraceeBackend customBackend = mockedBackend(customFilterConfiguration); final TraceeInterceptor customUnit = new TraceeInterceptor(customBackend); mockedBackend.put(INVOCATION_ID_KEY, "123"); customUnit.postHandle(httpServletRequest, httpServletResponse, new Object(), new ModelAndView()); verify(httpServletResponse, never()).setHeader(eq(TraceeConstants.TPIC_HEADER), anyString()); }
@Override public void postHandle(HttpServletRequest request, HttpServletResponse response, Object o, ModelAndView modelAndView) { }
TraceeInterceptor implements HandlerInterceptor { @Override public void postHandle(HttpServletRequest request, HttpServletResponse response, Object o, ModelAndView modelAndView) { } }
TraceeInterceptor implements HandlerInterceptor { @Override public void postHandle(HttpServletRequest request, HttpServletResponse response, Object o, ModelAndView modelAndView) { } TraceeInterceptor();  TraceeInterceptor(TraceeBackend backend); }
TraceeInterceptor implements HandlerInterceptor { @Override public void postHandle(HttpServletRequest request, HttpServletResponse response, Object o, ModelAndView modelAndView) { } 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 postHandle(HttpServletRequest request, HttpServletResponse response, Object o, ModelAndView modelAndView) { } 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);  }