1
2
3
4
5
6
7
8
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
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 }