use of org.apache.cxf.ws.addressing.MAPAggregator in project cxf by apache.
the class RMInInterceptorTest method testOrdering.
@Test
public void testOrdering() {
control.replay();
Phase p = new Phase(Phase.PRE_LOGICAL, 1);
SortedSet<Phase> phases = new TreeSet<Phase>();
phases.add(p);
PhaseInterceptorChain chain = new PhaseInterceptorChain(phases);
MAPAggregator map = new MAPAggregator();
RMInInterceptor rmi = new RMInInterceptor();
chain.add(rmi);
chain.add(map);
Iterator<Interceptor<? extends Message>> it = chain.iterator();
assertSame("Unexpected order.", rmi, it.next());
assertSame("Unexpected order.", map, it.next());
}
use of org.apache.cxf.ws.addressing.MAPAggregator in project cxf by apache.
the class FailoverAddressOverrideTest method enableWSAForCurrentEndpoint.
protected void enableWSAForCurrentEndpoint() {
Endpoint provider = ClientProxy.getClient(greeter).getEndpoint();
mapAggregator = new MAPAggregator();
mapCodec = MAPCodec.getInstance(ClientProxy.getClient(greeter).getBus());
provider.getInInterceptors().add(mapAggregator);
provider.getInInterceptors().add(mapCodec);
provider.getOutInterceptors().add(mapAggregator);
provider.getOutInterceptors().add(mapCodec);
provider.getInFaultInterceptors().add(mapAggregator);
provider.getInFaultInterceptors().add(mapCodec);
provider.getOutFaultInterceptors().add(mapAggregator);
provider.getOutFaultInterceptors().add(mapCodec);
}
use of org.apache.cxf.ws.addressing.MAPAggregator in project cxf by apache.
the class FailoverTest method enableWSAForCurrentEndpoint.
protected void enableWSAForCurrentEndpoint() {
Endpoint provider = ClientProxy.getClient(greeter).getEndpoint();
mapAggregator = new MAPAggregator();
mapCodec = MAPCodec.getInstance(ClientProxy.getClient(greeter).getBus());
provider.getInInterceptors().add(mapAggregator);
provider.getInInterceptors().add(mapCodec);
provider.getOutInterceptors().add(mapAggregator);
provider.getOutInterceptors().add(mapCodec);
provider.getInFaultInterceptors().add(mapAggregator);
provider.getInFaultInterceptors().add(mapCodec);
provider.getOutFaultInterceptors().add(mapAggregator);
provider.getOutFaultInterceptors().add(mapCodec);
}
Aggregations