Source code: org/activemq/transport/jabber/JabberTransportTest.java
1 /**
2 *
3 * Copyright 2005 Protique Ltd
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 **/
18 package org.activemq.transport.jabber;
19
20 import junit.framework.TestCase;
21 import org.activemq.broker.BrokerContainer;
22 import org.activemq.broker.impl.BrokerContainerImpl;
23 //import org.jivesoftware.smack.Chat;
24 //import org.jivesoftware.smack.XMPPConnection;
25
26 /**
27 * @version $Revision: 1.1 $
28 */
29 public class JabberTransportTest extends TestCase {
30
31 public void testNothing() throws Exception
32 {
33 // fake test
34 }
35
36 // private XMPPConnection xmppConnection;
37 // private BrokerContainer brokerContainer;
38 //
39 // public void testSendJabberQueueMessage() throws Exception {
40 // Chat chat = xmppConnection.createChat("jdoe@jabber.org");
41 // chat.sendMessage("Hey, how's it going?");
42 // }
43 //
44 // protected void setUp() throws Exception {
45 // brokerContainer = new BrokerContainerImpl();
46 // brokerContainer.addConnector("jabber://localhost:61606");
47 // //brokerContainer.addConnector("tcp://localhost:61616");
48 // brokerContainer.start();
49 //
50 // xmppConnection = new XMPPConnection("localhost", 61606);
51 // xmppConnection.login("jsmith", "mypass");
52 // }
53 //
54 // protected void tearDown() throws Exception {
55 // xmppConnection.close();
56 // brokerContainer.stop();
57 // }
58
59 }