/*
* $Id: SlaTestCase.java 17327 2010-05-19 20:08:54Z tcarlson $
* --------------------------------------------------------------------------------------
* Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.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.
*/
import org.mule.example.sla.Ticket;
import org.mule.module.client.MuleClient;
import org.mule.tck.FunctionalTestCase;
public class SlaTestCase extends FunctionalTestCase
{
@Override
protected String getConfigResources()
{
return "sla-config.xml";
}
public void testSla() throws Exception
{
MuleClient client = new MuleClient();
client.dispatch("vm://incoming.tickets", new Ticket("Customer A"), null);
client.dispatch("vm://incoming.tickets", new Ticket("Customer B"), null);
client.dispatch("vm://incoming.tickets", new Ticket("Customer C"), null);
client.dispatch("vm://incoming.tickets", new Ticket("Customer D"), null);
Thread.sleep(1000000);
}
}