@Test public void shouldAddOutInterceptorToDefaultMessage() { new TraceeCxfFeature(backend, Profile.DEFAULT).initializeProvider(interceptorProvider, bus); verify(interceptorProvider, times(2)).getOutInterceptors(); }
@Override protected void initializeProvider(InterceptorProvider provider, Bus bus) { final TraceeRequestInInterceptor requestInInterceptor = new TraceeRequestInInterceptor(backend, profile); final TraceeResponseInInterceptor responseInInterceptor = new TraceeResponseInInterceptor(backend, profile); final TraceeRequestOutInterceptor requestOutInterceptor = new TraceeRequestOutInterceptor(backend, profile); final TraceeResponseOutInterceptor responseOutInterceptor = new TraceeResponseOutInterceptor(backend, profile); provider.getInInterceptors().add(requestInInterceptor); provider.getInInterceptors().add(responseInInterceptor); provider.getOutInterceptors().add(requestOutInterceptor); provider.getOutInterceptors().add(responseOutInterceptor); provider.getOutFaultInterceptors().add(responseOutInterceptor); provider.getInFaultInterceptors().add(requestInInterceptor); }
TraceeCxfFeature extends AbstractFeature { @Override protected void initializeProvider(InterceptorProvider provider, Bus bus) { final TraceeRequestInInterceptor requestInInterceptor = new TraceeRequestInInterceptor(backend, profile); final TraceeResponseInInterceptor responseInInterceptor = new TraceeResponseInInterceptor(backend, profile); final TraceeRequestOutInterceptor requestOutInterceptor = new TraceeRequestOutInterceptor(backend, profile); final TraceeResponseOutInterceptor responseOutInterceptor = new TraceeResponseOutInterceptor(backend, profile); provider.getInInterceptors().add(requestInInterceptor); provider.getInInterceptors().add(responseInInterceptor); provider.getOutInterceptors().add(requestOutInterceptor); provider.getOutInterceptors().add(responseOutInterceptor); provider.getOutFaultInterceptors().add(responseOutInterceptor); provider.getInFaultInterceptors().add(requestInInterceptor); } }
TraceeCxfFeature extends AbstractFeature { @Override protected void initializeProvider(InterceptorProvider provider, Bus bus) { final TraceeRequestInInterceptor requestInInterceptor = new TraceeRequestInInterceptor(backend, profile); final TraceeResponseInInterceptor responseInInterceptor = new TraceeResponseInInterceptor(backend, profile); final TraceeRequestOutInterceptor requestOutInterceptor = new TraceeRequestOutInterceptor(backend, profile); final TraceeResponseOutInterceptor responseOutInterceptor = new TraceeResponseOutInterceptor(backend, profile); provider.getInInterceptors().add(requestInInterceptor); provider.getInInterceptors().add(responseInInterceptor); provider.getOutInterceptors().add(requestOutInterceptor); provider.getOutInterceptors().add(responseOutInterceptor); provider.getOutFaultInterceptors().add(responseOutInterceptor); provider.getInFaultInterceptors().add(requestInInterceptor); } TraceeCxfFeature();   TraceeCxfFeature(TraceeBackend backend, String profile);  TraceeCxfFeature(String profile); }
TraceeCxfFeature extends AbstractFeature { @Override protected void initializeProvider(InterceptorProvider provider, Bus bus) { final TraceeRequestInInterceptor requestInInterceptor = new TraceeRequestInInterceptor(backend, profile); final TraceeResponseInInterceptor responseInInterceptor = new TraceeResponseInInterceptor(backend, profile); final TraceeRequestOutInterceptor requestOutInterceptor = new TraceeRequestOutInterceptor(backend, profile); final TraceeResponseOutInterceptor responseOutInterceptor = new TraceeResponseOutInterceptor(backend, profile); provider.getInInterceptors().add(requestInInterceptor); provider.getInInterceptors().add(responseInInterceptor); provider.getOutInterceptors().add(requestOutInterceptor); provider.getOutInterceptors().add(responseOutInterceptor); provider.getOutFaultInterceptors().add(responseOutInterceptor); provider.getInFaultInterceptors().add(requestInInterceptor); } TraceeCxfFeature();   TraceeCxfFeature(TraceeBackend backend, String profile);  TraceeCxfFeature(String profile);  }
TraceeCxfFeature extends AbstractFeature { @Override protected void initializeProvider(InterceptorProvider provider, Bus bus) { final TraceeRequestInInterceptor requestInInterceptor = new TraceeRequestInInterceptor(backend, profile); final TraceeResponseInInterceptor responseInInterceptor = new TraceeResponseInInterceptor(backend, profile); final TraceeRequestOutInterceptor requestOutInterceptor = new TraceeRequestOutInterceptor(backend, profile); final TraceeResponseOutInterceptor responseOutInterceptor = new TraceeResponseOutInterceptor(backend, profile); provider.getInInterceptors().add(requestInInterceptor); provider.getInInterceptors().add(responseInInterceptor); provider.getOutInterceptors().add(requestOutInterceptor); provider.getOutInterceptors().add(responseOutInterceptor); provider.getOutFaultInterceptors().add(responseOutInterceptor); provider.getInFaultInterceptors().add(requestInInterceptor); } TraceeCxfFeature();   TraceeCxfFeature(TraceeBackend backend, String profile);  TraceeCxfFeature(String profile);   }