package test; /* * $Id: ApplicationTestCase.java$ * -------------------------------------------------------------------------------------- * 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.extras.client.MuleClient; import org.mule.impl.MuleMessage; import org.mule.tck.FunctionalTestCase; public class ApplicationTestCase extends FunctionalTestCase { /* * (non-Javadoc) * * @see org.mule.tck.FunctionalTestCase#getConfigResources() */ // @Override protected String getConfigResources() { return "mule-config.xml"; } public void testAsync() throws Exception { MuleClient client = new MuleClient(); for ( int i = 0; i < 10; i++ ) { client.dispatch( "vm://receive", new MuleMessage( new Object[]{"AUD", "USD"} ) ); System.out.println("iteration : " + i); } while ( true ) ; } }