Sfoglia il codice sorgente

Unit test for issue 1410

git-svn-id: http://svn.dmdirc.com/trunk@4318 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Chris Smith 16 anni fa
parent
commit
43d0ae8efe
1 ha cambiato i file con 15 aggiunte e 0 eliminazioni
  1. 15
    0
      test/com/dmdirc/parser/ChannelInfoTest.java

+ 15
- 0
test/com/dmdirc/parser/ChannelInfoTest.java Vedi File

@@ -285,6 +285,21 @@ public class ChannelInfoTest {
285 285
                 "-k+k lalala foobar", getModes(parser.sentLines.get(0)));
286 286
     }
287 287
     
288
+    @Test
289
+    public void testIssue1410() {
290
+        final TestParser parser = new TestParser();
291
+
292
+        parser.injectConnectionStrings();
293
+        parser.injectLine(":nick JOIN #DMDirc_testing");
294
+        parser.injectLine(":foo!bar@baz JOIN #DMDirc_testing");
295
+        parser.injectLine(":flub!floo@fleeee JOIN #DMDirc_testing");
296
+
297
+        assertNotSame(parser.getChannelInfo("#DMDirc_testing").getChannelClients(),
298
+                parser.getChannelInfo("#DMDirc_testing").getChannelClients());
299
+        assertEquals(parser.getChannelInfo("#DMDirc_testing").getChannelClients(),
300
+                parser.getChannelInfo("#DMDirc_testing").getChannelClients());
301
+    }
302
+    
288 303
     @Test @Ignore
289 304
     public void testModeUnsetKeyMultiple() {
290 305
         final TestParser parser = new TestParser();

Loading…
Annulla
Salva