Package org.mulesoft.demo.magento

Source Code of org.mulesoft.demo.magento.MagentoFunctionalTestDriver

/**
* 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.md file.
*/

package org.mulesoft.demo.magento;

import org.mule.api.MuleEvent;
import org.mule.construct.SimpleFlowConstruct;
import org.mule.tck.FunctionalTestCase;

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

    public void testUpdateFlow() throws Exception
    {
        final MuleEvent event = getTestEvent("");
        final SimpleFlowConstruct flow = lookupFlowConstruct("MainFlow");
        final MuleEvent responseEvent = flow.process(event);
        System.out.println(responseEvent);
    }

    private SimpleFlowConstruct lookupFlowConstruct(final String name)
    {
        return (SimpleFlowConstruct) muleContext.getRegistry().lookupFlowConstruct(name);
    }

}
TOP

Related Classes of org.mulesoft.demo.magento.MagentoFunctionalTestDriver

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.