@Test public void shouldCleanupBackendAfterInvocation() throws Exception { unit.afterCompletion(mock(MessageContext.class), new Object(), mock(Exception.class)); verify(backend).clear(); }
@Override public void afterCompletion(MessageContext messageContext, Object o, Exception e) { backend.clear(); }
TraceeEndpointInterceptor extends AbstractTraceeInterceptor implements EndpointInterceptor { @Override public void afterCompletion(MessageContext messageContext, Object o, Exception e) { backend.clear(); } }
TraceeEndpointInterceptor extends AbstractTraceeInterceptor implements EndpointInterceptor { @Override public void afterCompletion(MessageContext messageContext, Object o, Exception e) { backend.clear(); } TraceeEndpointInterceptor();  TraceeEndpointInterceptor(final String profile);  TraceeEndpointInterceptor(final TraceeBackend backend, final String profile); }
TraceeEndpointInterceptor extends AbstractTraceeInterceptor implements EndpointInterceptor { @Override public void afterCompletion(MessageContext messageContext, Object o, Exception e) { backend.clear(); } TraceeEndpointInterceptor();  TraceeEndpointInterceptor(final String profile);  TraceeEndpointInterceptor(final TraceeBackend backend, final String profile); @Override boolean handleRequest(MessageContext messageContext, Object o); @Override boolean handleResponse(MessageContext messageContext, Object o); @Override boolean handleFault(MessageContext messageContext, Object o); @Override void afterCompletion(MessageContext messageContext, Object o, Exception e); }
TraceeEndpointInterceptor extends AbstractTraceeInterceptor implements EndpointInterceptor { @Override public void afterCompletion(MessageContext messageContext, Object o, Exception e) { backend.clear(); } TraceeEndpointInterceptor();  TraceeEndpointInterceptor(final String profile);  TraceeEndpointInterceptor(final TraceeBackend backend, final String profile); @Override boolean handleRequest(MessageContext messageContext, Object o); @Override boolean handleResponse(MessageContext messageContext, Object o); @Override boolean handleFault(MessageContext messageContext, Object o); @Override void afterCompletion(MessageContext messageContext, Object o, Exception e);  }