1   /*
2    * $Id: XmppConnectorTestCase.java 10787 2008-02-12 18:51:50Z dfeist $
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.transport.xmpp;
12  
13  import org.mule.api.transport.Connector;
14  import org.mule.transport.AbstractConnectorTestCase;
15  import org.mule.transport.xmpp.XmppConnector;
16  
17  import org.jivesoftware.smack.packet.Message;
18  
19  public class XmppConnectorTestCase extends AbstractConnectorTestCase
20  {
21      // @Override
22      public Connector createConnector() throws Exception
23      {
24          XmppConnector cnn = new XmppConnector();
25          cnn.setName("xmppConnector");
26          return cnn;
27      }
28  
29      public Object getValidMessage() throws Exception
30      {
31          return new Message("Hello");
32      }
33  
34      protected String getProtocol()
35      {
36          return "xmpp";
37      }
38      
39      public String getTestEndpointURI()
40      {
41          return this.getProtocol() + "://mule1:mule@jabber.org.au/ross@jabber.org";
42      }
43  
44  }