Package org.mule.tck.listener

Examples of org.mule.tck.listener.ExceptionListener


    @Test
    public void catchExceptionStrategyHandlesSoapFault() throws Exception
    {
        Flow flow = (Flow) getFlowConstruct("soapFaultWithCatchExceptionStrategy");

        ExceptionListener listener = new ExceptionListener(muleContext);
        MuleMessage response = flow.process(getTestEvent(FAIL_REQUEST)).getMessage();

        // Assert that the exception was thrown
        listener.waitUntilAllNotificationsAreReceived();

        assertXMLEqual(EXPECTED_SOAP_FAULT_DETAIL, response.getPayloadAsString());

        assertNull(response.getExceptionPayload());
View Full Code Here


    }

    @Test
    public void testTransformerException() throws Exception
    {
        ExceptionListener exceptionListener = new ExceptionListener(muleContext);
        createFileOnFtpServer("transformerException/test1");
        exceptionListener.waitUntilAllNotificationsAreReceived();
        prober.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
View Full Code Here

    }

    @Test
    public void testRollbackExceptionStrategyConsumesMessage() throws Exception
    {
        ExceptionListener exceptionListener = new ExceptionListener(muleContext).setNumberOfExecutionsRequired(4);
        createFileOnFtpServer("rollbackOnException/test1");
        exceptionListener.waitUntilAllNotificationsAreReceived();
        prober.check(new Probe()
        {
            @Override
            public boolean isSatisfied()
            {
View Full Code Here

TOP

Related Classes of org.mule.tck.listener.ExceptionListener

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.