Package org.mule.construct

Examples of org.mule.construct.Flow.process()


    @Test
    public void testTransactionalFailInTheMiddleWithCatchExceptionStrategy() throws Exception
    {
        Flow flow = (Flow) getFlowConstruct("transactionalFailInTheMiddleWithCatchExceptionStrategy");
        MuleEvent event = getTestEvent("message", flow);
        flow.process(event);
        Integer countWithType1 = getCountWithType1();
        Integer countWithType2 = getCountWithType2();
        assertThat(countWithType1,Is.is(1));
        assertThat(countWithType2,Is.is(0));
    }
View Full Code Here


    @Test
    public void testTransactionalFailAtEndWithCatchExceptionStrategy() throws Exception
    {
        Flow flow = (Flow) getFlowConstruct("transactionalFailAtEndWithCatchExceptionStrategy");
        MuleEvent event = getTestEvent("message", flow);
        flow.process(event);
        Integer countWithType1 = getCountWithType1();
        Integer countWithType2 = getCountWithType2();
        assertThat(countWithType1,Is.is(1));
        assertThat(countWithType2,Is.is(1));
    }
View Full Code Here

    @Test
    public void testTransactionalDoesntFailWithAnotherResourceType() throws Exception
    {
        Flow flow = (Flow) getFlowConstruct("transactionalDoesntFailWithAnotherResourceType");
        MuleEvent event = getTestEvent("message", flow);
        flow.process(event);
        Integer countWithType1 = getCountWithType1();
        Integer countWithType2 = getCountWithType2();
        Integer countWithType3 = getCountWithType3();
        assertThat(countWithType1,Is.is(1));
        assertThat(countWithType2,Is.is(1));
View Full Code Here

    {
        Flow flow = (Flow) getFlowConstruct("transactionalWithAnotherResourceTypeAndExceptionAtEnd");
        MuleEvent event = getTestEvent("message", flow);
        try
        {
            flow.process(event);
        } catch (Exception e)
        {
        }
        Integer countWithType1 = getCountWithType1();
        Integer countWithType2 = getCountWithType2();
View Full Code Here

    @Test
    public void testNestedTransactional() throws Exception
    {
        Flow flow = (Flow) getFlowConstruct("nestedTransactional");
        MuleEvent event = getTestEvent("message", flow);
        flow.process(event);
        Integer countWithType1 = getCountWithType1();
        Integer countWithType2 = getCountWithType2();
        assertThat(countWithType1,Is.is(1));
        assertThat(countWithType2,Is.is(1));
    }
View Full Code Here

    {
        Flow flow = (Flow) getFlowConstruct("nestedTransactionalFail");
        MuleEvent event = getTestEvent("message", flow);
        try
        {
            flow.process(event);
        } catch (Exception e)
        {
        }
        Integer countWithType1 = getCountWithType1();
        Integer countWithType2 = getCountWithType2();
View Full Code Here

    @Test
    public void testNestedTransactionalFailWithCatch() throws Exception
    {
        Flow flow = (Flow) getFlowConstruct("nestedTransactionalFailWithCatch");
        MuleEvent event = getTestEvent("message", flow);
        flow.process(event);
        Integer countWithType1 = getCountWithType1();
        Integer countWithType2 = getCountWithType2();
        assertThat(countWithType1,Is.is(1));
        assertThat(countWithType2,Is.is(1));
    }
View Full Code Here

    @Test
    public void testNestedTransactionalWithBeginOrJoin() throws Exception
    {
        Flow flow = (Flow) getFlowConstruct("nestedTransactionalWithBeginOrJoin");
        MuleEvent event = getTestEvent("message", flow);
        flow.process(event);
        Integer countWithType1 = getCountWithType1();
        Integer countWithType2 = getCountWithType2();
        assertThat(countWithType1,Is.is(1));
        assertThat(countWithType2,Is.is(1));
    }
View Full Code Here

    {
        Flow flow = (Flow) getFlowConstruct("nestedTransactionalWithBeginOrJoinFail");
        MuleEvent event = getTestEvent("message", flow);
        try
        {
            flow.process(event);
        } catch (Exception e)
        {
        }
        Integer countWithType1 = getCountWithType1();
        Integer countWithType2 = getCountWithType2();
View Full Code Here

    @Test
    public void testNestedTransactionalWithBeginOrJoinFailWithCatch() throws Exception
    {
        Flow flow = (Flow) getFlowConstruct("nestedTransactionalWithBeginOrJoinFailWithCatch");
        MuleEvent event = getTestEvent("message", flow);
        flow.process(event);
        Integer countWithType1 = getCountWithType1();
        Integer countWithType2 = getCountWithType2();
        assertThat(countWithType1,Is.is(1));
        assertThat(countWithType2,Is.is(1));
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.