diff options
author | Danny van Heumen <danny@dannyvanheumen.nl> | 2014-03-27 23:36:07 +0100 |
---|---|---|
committer | Danny van Heumen <danny@dannyvanheumen.nl> | 2014-07-30 18:30:01 +0200 |
commit | c1f13e0cf266fdee739d0e6a3cc5aa27a1c64294 (patch) | |
tree | 184842e419d374f18bbb418f11f31c78ca7e7923 /test | |
parent | f787a5dacbdbb5d9f9ffc99dbd3529227f9f7aab (diff) | |
download | jitsi-c1f13e0cf266fdee739d0e6a3cc5aa27a1c64294.zip jitsi-c1f13e0cf266fdee739d0e6a3cc5aa27a1c64294.tar.gz jitsi-c1f13e0cf266fdee739d0e6a3cc5aa27a1c64294.tar.bz2 |
Added support for 'b' channel mode.
Diffstat (limited to 'test')
-rw-r--r-- | test/net/java/sip/communicator/impl/protocol/irc/ModeParserTest.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/net/java/sip/communicator/impl/protocol/irc/ModeParserTest.java b/test/net/java/sip/communicator/impl/protocol/irc/ModeParserTest.java index ebc6dc5..eddf066 100644 --- a/test/net/java/sip/communicator/impl/protocol/irc/ModeParserTest.java +++ b/test/net/java/sip/communicator/impl/protocol/irc/ModeParserTest.java @@ -195,6 +195,19 @@ public class ModeParserTest Assert.assertEquals(0, modes.get(0).getParams().length); } + public void testModeBan() + { + ModeParser parser = new ModeParser("+b *!*@some-ip.dynamicIP.provider.net"); + List<ModeEntry> modes = parser.getModes(); + Assert.assertNotNull(modes); + Assert.assertEquals(1, modes.size()); + ModeEntry entry = modes.get(0); + Assert.assertTrue(entry instanceof ModeEntry); + Assert.assertEquals(Mode.BAN, entry.getMode()); + Assert.assertEquals(1, entry.getParams().length); + Assert.assertEquals("*!*@some-ip.dynamicIP.provider.net", entry.getParams()[0]); + } + protected void tearDown() throws Exception { super.tearDown(); |