Package org.mule.config.spring.parsers.specific

Source Code of org.mule.config.spring.parsers.specific.MethodInvokerDefinitionParserTestCase

/*
* $Id: MethodInvokerDefinitionParserTestCase.java 22046 2011-05-31 03:00:11Z dfeist $
* --------------------------------------------------------------------------------------
* Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
*
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/

package org.mule.config.spring.parsers.specific;

import org.mule.construct.Flow;
import org.mule.tck.FunctionalTestCase;

public class MethodInvokerDefinitionParserTestCase extends FunctionalTestCase
{

    public void testPojoFlow() throws Exception
    {
        Flow flow = muleContext.getRegistry().lookupObject("pojoFlow");
        Flow flow2 = muleContext.getRegistry().lookupObject("pojoFlow2");

        assertEquals("start nullmethod2Arg1Arg2config2Val arg2Valmethod2Arg1Arg2config2Val ", flow.process(
            getTestEvent("start ")).getMessageAsString());

        assertEquals("start nullmethod2Arg1Arg2null arg2Valmethod2Arg1Arg2null ", flow2.process(
            getTestEvent("start ")).getMessageAsString());

    }

    @Override
    protected String getConfigResources()
    {
        return "pojo-invoke-test.xml";
    }

}
TOP

Related Classes of org.mule.config.spring.parsers.specific.MethodInvokerDefinitionParserTestCase

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.