Search in sources :

Example 11 with PhaseManagerImpl

use of org.apache.cxf.bus.managers.PhaseManagerImpl in project cxf by apache.

the class MAPAggregatorTest method getExchange.

private Exchange getExchange() {
    Bus bus = control.createMock(Bus.class);
    bus.getExtension(PhaseManager.class);
    EasyMock.expectLastCall().andReturn(new PhaseManagerImpl()).anyTimes();
    Exchange exchange = control.createMock(Exchange.class);
    exchange.getBus();
    EasyMock.expectLastCall().andReturn(bus).anyTimes();
    EasyMock.expect(exchange.isEmpty()).andReturn(true).anyTimes();
    return exchange;
}
Also used : Exchange(org.apache.cxf.message.Exchange) Bus(org.apache.cxf.Bus) ExtensionManagerBus(org.apache.cxf.bus.extension.ExtensionManagerBus) PhaseManagerImpl(org.apache.cxf.bus.managers.PhaseManagerImpl)

Aggregations

PhaseManagerImpl (org.apache.cxf.bus.managers.PhaseManagerImpl)11 Test (org.junit.Test)9 Endpoint (org.apache.cxf.endpoint.Endpoint)6 Exchange (org.apache.cxf.message.Exchange)6 Phase (org.apache.cxf.phase.Phase)6 ArrayList (java.util.ArrayList)5 Message (org.apache.cxf.message.Message)5 MessageImpl (org.apache.cxf.message.MessageImpl)5 Bus (org.apache.cxf.Bus)4 InterceptorChain (org.apache.cxf.interceptor.InterceptorChain)4 PhaseManager (org.apache.cxf.phase.PhaseManager)4 Service (org.apache.cxf.service.Service)4 Binding (org.apache.cxf.binding.Binding)3 Interceptor (org.apache.cxf.interceptor.Interceptor)3 IOException (java.io.IOException)2 HashSet (java.util.HashSet)2 Set (java.util.Set)2 QName (javax.xml.namespace.QName)2 SOAPBodyElement (javax.xml.soap.SOAPBodyElement)2 SOAPElement (javax.xml.soap.SOAPElement)2