Package

Source Code of RouteToDLQFunctionalTestCase

import com.prancingdonkey.domain.Order;
import org.junit.Assert;
import org.junit.Test;
import org.mule.api.MuleMessage;
import org.mule.tck.junit4.FunctionalTestCase;


public class RouteToDLQFunctionalTestCase extends FunctionalTestCase {

    @Override
    protected String getConfigResources() {
        return "src/main/app/routeToDLQ.xml";
    }

    @Test
    public void testCanRouteOnUnaccepted() throws Exception {
        muleContext.getClient().dispatch("jms://topic:orders", new Order(),null);
        MuleMessage result = muleContext.getClient().request("jms://DLQ",15000);
        Assert.assertNotNull(result);
    }
}
TOP

Related Classes of RouteToDLQFunctionalTestCase

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.