1   /*
2    * $Id: XmppConnectorTestCase.java 9169 2007-10-16 12:47:45Z 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.xmpp;
12  
13  import org.mule.tck.providers.AbstractConnectorTestCase;
14  import org.mule.umo.provider.UMOConnector;
15  
16  import org.jivesoftware.smack.packet.Message;
17  
18  public class XmppConnectorTestCase extends AbstractConnectorTestCase
19  {
20      // @Override
21      public UMOConnector createConnector() throws Exception
22      {
23          XmppConnector cnn = new XmppConnector();
24          cnn.setName("xmppConnector");
25          cnn.initialise();
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  }