Package org.mule.test.routing

Source Code of org.mule.test.routing.DynamicJmsEndpointRoutingTestCase

/*
* $Id: DynamicJmsEndpointRoutingTestCase.java 20770 2010-12-16 02:29:44Z dzapata $
* --------------------------------------------------------------------------------------
* 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.routing;

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

// MULE-5162
// FIXME: refactor since it's a copy of DynamicEndpointRoutingTestCase with a jms outbound endpoint
public class DynamicJmsEndpointRoutingTestCase  extends FunctionalTestCase
{
    @Override
    protected String getConfigResources()
    {
        return "dynamic-endpoint-routing-test.xml";
    }

    public void testDynamicEndpoint() throws Exception
    {
        MuleClient client = new MuleClient(muleContext);
        FutureMessageResult result = client.sendAsync("vm://inBound", "Hello,world", null, 5000);
        MuleMessage response = result.getMessage(5000);
        assertNotNull(response);
        assertNotNull(response.getPayload());
        assertEquals("step2Service", response.getPayloadAsString());
    }
}
TOP

Related Classes of org.mule.test.routing.DynamicJmsEndpointRoutingTestCase

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.