1   /*
2    * $Id: VMConnectorTestCase.java 8688 2007-09-28 14:01:51Z holger $
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.providers.vm;
12  
13  import org.mule.impl.MuleMessage;
14  import org.mule.tck.providers.AbstractConnectorTestCase;
15  import org.mule.umo.provider.UMOConnector;
16  
17  public class VMConnectorTestCase extends AbstractConnectorTestCase
18  {
19  
20      /*
21       * (non-Javadoc)
22       * 
23       * @see org.mule.tck.providers.AbstractConnectorTestCase#createConnector()
24       */
25      public UMOConnector createConnector() throws Exception
26      {
27          VMConnector conn = new VMConnector();
28          conn.setName("TestVM");
29          conn.initialise();
30          return conn;
31      }
32  
33      public String getTestEndpointURI()
34      {
35          return "vm://test.queue";
36      }
37  
38      public Object getValidMessage() throws Exception
39      {
40          return new MuleMessage("TestMessage");
41      }
42  
43  }