Search in sources :

Example 21 with Phase

use of org.apache.cxf.phase.Phase in project cxf by apache.

the class InterceptorFaultTest method testInterceptorFail.

private void testInterceptorFail(List<Phase> phases, FaultLocation location, boolean robust) throws PingMeFault {
    for (Phase p : phases) {
        location.setPhase(p.getName());
        if (Phase.POST_INVOKE.equals(p.getName())) {
            break;
        }
        testFail(location, true, robust);
    }
}
Also used : Phase(org.apache.cxf.phase.Phase)

Aggregations

Phase (org.apache.cxf.phase.Phase)21 TreeSet (java.util.TreeSet)10 Message (org.apache.cxf.message.Message)10 Test (org.junit.Test)8 PhaseManagerImpl (org.apache.cxf.bus.managers.PhaseManagerImpl)6 Endpoint (org.apache.cxf.endpoint.Endpoint)6 Interceptor (org.apache.cxf.interceptor.Interceptor)6 Exchange (org.apache.cxf.message.Exchange)6 PhaseInterceptorChain (org.apache.cxf.phase.PhaseInterceptorChain)6 Bus (org.apache.cxf.Bus)5 InterceptorChain (org.apache.cxf.interceptor.InterceptorChain)5 PhaseManager (org.apache.cxf.phase.PhaseManager)5 ArrayList (java.util.ArrayList)4 ExchangeImpl (org.apache.cxf.message.ExchangeImpl)4 Before (org.junit.Before)4 SoapMessage (org.apache.cxf.binding.soap.SoapMessage)3 Service (org.apache.cxf.service.Service)3 BindingOperationInfo (org.apache.cxf.service.model.BindingOperationInfo)3 MustUnderstandInterceptor (org.apache.cxf.binding.soap.interceptor.MustUnderstandInterceptor)2 SAAJInInterceptor (org.apache.cxf.binding.soap.saaj.SAAJInInterceptor)2