Package org.mule.test.integration.transformer

Source Code of org.mule.test.integration.transformer.TransformerTrackerLifecycleTestCase

/*
* $Id: TransformerTrackerLifecycleTestCase.java 19692 2010-09-21 23:50:35Z aperepel $
* --------------------------------------------------------------------------------------
* 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.test.integration.transformer;

import org.mule.api.MuleMessage;
import org.mule.api.client.MuleClient;
import org.mule.tck.FunctionalTestCase;

public class TransformerTrackerLifecycleTestCase extends FunctionalTestCase
{
    @Override
    protected String getConfigResources()
    {
        return "org/mule/test/transformers/transformer-lifecycle.xml";
    }

    public void testLifecycle() throws Exception
    {

        MuleClient muleClient = muleContext.getClient();

        final MuleMessage result = muleClient.send("vm://EchoService.In", "foo", null);

        final LifecycleTrackerTransformer ltt = (LifecycleTrackerTransformer) result.getPayload();

        muleContext.dispose();

        //TODO MULE-5002 initialise called twice
        assertEquals("[setProperty, setMuleContext, initialise, setMuleContext, initialise, start, stop]",
            ltt.getTracker().toString());
    }
}
TOP

Related Classes of org.mule.test.integration.transformer.TransformerTrackerLifecycleTestCase

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.