}
// test failure in phases before Phase.PRE_LOGICAL
Iterator<Phase> it = inPhases.iterator();
Phase p = null;
FaultLocation location = new org.apache.cxf.greeter_control.types.ObjectFactory()
.createFaultLocation();
location.setAfter(MAPAggregator.class.getName());
// test failure occuring before logical addressing interceptor
while (it.hasNext()) {
p = it.next();
location.setPhase(p.getName());
if (Phase.PRE_LOGICAL.equals(p.getName())) {
break;
}
testFail(location, true);
}
// test failure occuring after logical addressing interceptor -
// won't get a fault in case of oneways (partial response already sent)
do {
location.setPhase(p.getName());
if (Phase.INVOKE.equals(p.getName())) {
break;
}
testFail(location, true);
p = it.hasNext() ? it.next() : null;
} while (null != p);