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