1   /*
2    * $Id: MuleClientTestCase.java 11549 2008-04-09 05:12:30Z dirk.olmes $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.module.client;
12  
13  import org.mule.api.MuleException;
14  
15  public class MuleClientTestCase extends AbstractMuleClientTestCase
16  {
17  
18      public void testCreateMuleClient() throws MuleException
19      {
20          MuleClient muleClient = new MuleClient();
21          assertEquals(muleContext, muleClient.getMuleContext());
22          assertTrue(muleContext.isInitialised());
23          assertTrue(muleContext.isStarted());
24          muleClient.dispatch("test://test", "message", null);
25          muleClient.send("test://test", "message", null);
26          muleClient.dispose();
27          assertTrue(muleClient.getMuleContext().isInitialised());
28          assertTrue(muleClient.getMuleContext().isStarted());
29      }
30  
31  }