Search in sources :

Example 1 with WSAddressingFeatureApplier

use of org.apache.cxf.ws.addressing.WSAddressingFeature.WSAddressingFeatureApplier in project cxf by apache.

the class ProxyTest method testRMClientConstruction.

@Test
public void testRMClientConstruction() {
    Proxy proxy = new Proxy(rme);
    Bus bus = control.createMock(Bus.class);
    EasyMock.expect(bus.getExtension(WSAddressingFeatureApplier.class)).andReturn(new WSAddressingFeatureApplier() {

        @Override
        public void initializeProvider(WSAddressingFeature feature, InterceptorProvider provider, Bus bus) {
        }
    }).anyTimes();
    Endpoint endpoint = control.createMock(Endpoint.class);
    Conduit conduit = control.createMock(Conduit.class);
    org.apache.cxf.ws.addressing.EndpointReferenceType address = control.createMock(org.apache.cxf.ws.addressing.EndpointReferenceType.class);
    control.replay();
    assertNotNull(proxy.createClient(bus, endpoint, ProtocolVariation.RM10WSA200408, conduit, address));
}
Also used : Bus(org.apache.cxf.Bus) WSAddressingFeature(org.apache.cxf.ws.addressing.WSAddressingFeature) Endpoint(org.apache.cxf.endpoint.Endpoint) EndpointReferenceType(org.apache.cxf.ws.addressing.EndpointReferenceType) WSAddressingFeatureApplier(org.apache.cxf.ws.addressing.WSAddressingFeature.WSAddressingFeatureApplier) Conduit(org.apache.cxf.transport.Conduit) InterceptorProvider(org.apache.cxf.interceptor.InterceptorProvider) Test(org.junit.Test)

Aggregations

Bus (org.apache.cxf.Bus)1 Endpoint (org.apache.cxf.endpoint.Endpoint)1 InterceptorProvider (org.apache.cxf.interceptor.InterceptorProvider)1 Conduit (org.apache.cxf.transport.Conduit)1 EndpointReferenceType (org.apache.cxf.ws.addressing.EndpointReferenceType)1 WSAddressingFeature (org.apache.cxf.ws.addressing.WSAddressingFeature)1 WSAddressingFeatureApplier (org.apache.cxf.ws.addressing.WSAddressingFeature.WSAddressingFeatureApplier)1 Test (org.junit.Test)1