Package org.mule.modules

Source Code of org.mule.modules.weatherConnectorTest

/**
* This file was automatically generated by the Mule Development Kit
*/
package org.mule.modules;

import org.junit.Test;
import org.mule.api.MuleEvent;
import org.mule.construct.Flow;
import org.mule.tck.AbstractMuleTestCase;
import org.mule.tck.FunctionalTestCase;

public class weatherConnectorTest extends FunctionalTestCase
{
    @Override
    protected String getConfigResources()
    {
        return "weather-config.xml";
    }

    @Test
    public void testFlow() throws Exception
    {
      Flow flow = lookupFlowConstruct("configInMp");
        MuleEvent event = AbstractMuleTestCase.getTestEvent("");
        MuleEvent responseEvent = flow.process(event);
    }

    protected Flow lookupFlowConstruct(String name)
    {
        return (Flow) AbstractMuleTestCase.muleContext.getRegistry().lookupFlowConstruct(name);
    }
}
TOP

Related Classes of org.mule.modules.weatherConnectorTest

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.