1   /*
2    * $Id: VMMessageReceiverTestCase.java 7963 2007-08-21 08:53:15Z 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.providers.vm;
12  
13  import org.mule.impl.endpoint.MuleEndpoint;
14  import org.mule.tck.providers.AbstractMessageReceiverTestCase;
15  import org.mule.umo.endpoint.UMOEndpoint;
16  import org.mule.umo.provider.UMOMessageReceiver;
17  
18  public class VMMessageReceiverTestCase extends AbstractMessageReceiverTestCase
19  {
20  
21      VMMessageReceiver receiver;
22  
23      protected void doSetUp() throws Exception
24      {
25          super.doSetUp();
26          receiver = new VMMessageReceiver(endpoint.getConnector(), component, endpoint);
27      }
28  
29      /*
30       * (non-Javadoc)
31       * 
32       * @see org.mule.tck.providers.AbstractMessageReceiverTestCase#getMessageReceiver()
33       */
34      public UMOMessageReceiver getMessageReceiver()
35      {
36          return receiver;
37      }
38  
39      public UMOEndpoint getEndpoint() throws Exception
40      {
41          endpoint = new MuleEndpoint("vm://test", true);
42          return endpoint;
43      }
44  }