@Test public void catchJaxbExceptionOnRenderingAndReturnWithoutException() throws Exception { backend.put("our key", "is our value"); when(((SoapMessage) messageContext.getResponse()).getSoapHeader()).thenReturn(mock(SoapHeader.class)); unit.handleResponse(messageContext, new Object()); verify(((SoapMessage) messageContext.getResponse()).getSoapHeader()).getResult(); }
@Override public boolean handleResponse(MessageContext messageContext, Object o) { serializeContextToSoapHeader(messageContext.getResponse(), OutgoingResponse); return true; }
TraceeEndpointInterceptor extends AbstractTraceeInterceptor implements EndpointInterceptor { @Override public boolean handleResponse(MessageContext messageContext, Object o) { serializeContextToSoapHeader(messageContext.getResponse(), OutgoingResponse); return true; } }
TraceeEndpointInterceptor extends AbstractTraceeInterceptor implements EndpointInterceptor { @Override public boolean handleResponse(MessageContext messageContext, Object o) { serializeContextToSoapHeader(messageContext.getResponse(), OutgoingResponse); return true; } TraceeEndpointInterceptor();  TraceeEndpointInterceptor(final String profile);  TraceeEndpointInterceptor(final TraceeBackend backend, final String profile); }
TraceeEndpointInterceptor extends AbstractTraceeInterceptor implements EndpointInterceptor { @Override public boolean handleResponse(MessageContext messageContext, Object o) { serializeContextToSoapHeader(messageContext.getResponse(), OutgoingResponse); return true; } 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 boolean handleResponse(MessageContext messageContext, Object o) { serializeContextToSoapHeader(messageContext.getResponse(), OutgoingResponse); return true; } 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);  }