Package org.mule.execution

Examples of org.mule.execution.MessageProcessPhase


    }

    @Test
    public void notSupportedMessageProcessPhaseInRegistry() throws Exception
    {
        MessageProcessPhase notSupportedPhase = createNotSupportedPhase();
        processAndVerifyDefaultPhasesUsingRegistryPhases(Arrays.asList(notSupportedPhase));
    }
View Full Code Here


    }

    @Test
    public void testExceptionHandlerIsCalledDuringPhaseFailure() throws Exception
    {
        MessageProcessPhase failureMessageProcessPhase = createFailureMessageProcessPhase();
        when(mockMuleContext.getExceptionListener()).thenReturn(mockExceptionListener);
        MuleMessageProcessingManager manager = createManagerUsingPhasesInRegistry(Arrays.asList(failureMessageProcessPhase));
        manager.processMessage(completeMessageProcessTemplateAndContext, completeMessageProcessTemplateAndContext);
        verify(mockExceptionListener, times(1)).handleException(any(MuleException.class));
    }
View Full Code Here

        return failureMessageProcessPhase;
    }

    private MessageProcessPhase createNotSupportedPhase()
    {
        MessageProcessPhase notSupportedPhase = mock(MessageProcessPhase.class, Answers.RETURNS_DEEP_STUBS.get());
        when(notSupportedPhase.supportsTemplate(any(MessageProcessTemplate.class))).thenReturn(false);
        return notSupportedPhase;
    }
View Full Code Here

TOP

Related Classes of org.mule.execution.MessageProcessPhase

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.