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;
}
Aggregations