mina-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ber...@apache.org
Subject svn commit: r808073 - /mina/sandbox/vysper/trunk/server/extensions/xep0045-muc/src/test/java/org/apache/vysper/xmpp/modules/extension/xep0045_muc/inttest/MUCIntegrationTestCase.java
Date Wed, 26 Aug 2009 16:02:29 GMT
Author: berndf
Date: Wed Aug 26 16:02:29 2009
New Revision: 808073

URL: http://svn.apache.org/viewvc?rev=808073&view=rev
Log:
took the liberty to re-uncomment the test and modify it in a way that it must fail when the
bug is fixed: so, we won't miss to re-enable it. ;-)

Modified:
    mina/sandbox/vysper/trunk/server/extensions/xep0045-muc/src/test/java/org/apache/vysper/xmpp/modules/extension/xep0045_muc/inttest/MUCIntegrationTestCase.java

Modified: mina/sandbox/vysper/trunk/server/extensions/xep0045-muc/src/test/java/org/apache/vysper/xmpp/modules/extension/xep0045_muc/inttest/MUCIntegrationTestCase.java
URL: http://svn.apache.org/viewvc/mina/sandbox/vysper/trunk/server/extensions/xep0045-muc/src/test/java/org/apache/vysper/xmpp/modules/extension/xep0045_muc/inttest/MUCIntegrationTestCase.java?rev=808073&r1=808072&r2=808073&view=diff
==============================================================================
--- mina/sandbox/vysper/trunk/server/extensions/xep0045-muc/src/test/java/org/apache/vysper/xmpp/modules/extension/xep0045_muc/inttest/MUCIntegrationTestCase.java
(original)
+++ mina/sandbox/vysper/trunk/server/extensions/xep0045-muc/src/test/java/org/apache/vysper/xmpp/modules/extension/xep0045_muc/inttest/MUCIntegrationTestCase.java
Wed Aug 26 16:02:29 2009
@@ -78,6 +78,7 @@
         final BlockingQueue<String> joinedQueue = new LinkedBlockingQueue<String>();
         chat.addParticipantStatusListener(new ParticipantStatusListenerAdapter() {
             
+            @Override
             public void joined(String participant) {
                 joinedQueue.add(participant);
             }
@@ -98,6 +99,7 @@
         
         final BlockingQueue<String> leftQueue = new LinkedBlockingQueue<String>();
         chat.addParticipantStatusListener(new ParticipantStatusListenerAdapter() {
+            @Override
             public void left(String participant) {
                 leftQueue.add(participant);
             }
@@ -112,22 +114,28 @@
 
     }
 
-    // TODO re-enable when component relay is fully implemented
-//    public void testSendMessageToRoom() throws Exception {
-//        chat.join("Nick");
-//        chat2.join("Nick2");
-//
-//        chat.sendMessage("Fooo");
-//        Message message = chat.nextMessage(5000);
-//        assertNotNull(message);
-//        assertEquals("Fooo", message.getBody());
-//        assertEquals(ROOM_JID + "/Nick", message.getFrom());
-//        assertEquals(TEST_USERNAME1, message.getTo());
-//        
-//        message = chat2.nextMessage(5000);
-//        assertNotNull(message);
-//        assertEquals("Fooo", message.getBody());
-//        assertEquals(ROOM_JID + "/Nick", message.getFrom());
-//        assertEquals(TEST_USERNAME2, message.getTo());
-//    }
+    public void testSendMessageToRoom() throws Exception {
+        chat.join("Nick");
+        chat2.join("Nick2");
+
+        chat.sendMessage("Fooo");
+        Message message = chat.nextMessage(5000);
+
+        assertNull(message); // TODO REMOVE. triggers failure as soon as relaying is fixed
+        return; 
+
+        // TODO re-enable rest of the test when component relay is fully implemented
+        /*
+        assertNotNull(message);
+        assertEquals("Fooo", message.getBody());
+        assertEquals(ROOM_JID + "/Nick", message.getFrom());
+        assertEquals(TEST_USERNAME1, message.getTo());
+        
+        message = chat2.nextMessage(5000);
+        assertNotNull(message);
+        assertEquals("Fooo", message.getBody());
+        assertEquals(ROOM_JID + "/Nick", message.getFrom());
+        assertEquals(TEST_USERNAME2, message.getTo());
+        */
+    }
 }



Mime
View raw message