diff options
author | Danny van Heumen <danny@dannyvanheumen.nl> | 2014-08-14 20:45:34 +0200 |
---|---|---|
committer | Danny van Heumen <danny@dannyvanheumen.nl> | 2014-08-14 20:45:34 +0200 |
commit | 5e5bdf5c590849fb82d441e3cdeb15cab9eb4762 (patch) | |
tree | 6916112b3914d5499bacaee90f214877018888f3 /test | |
parent | 985644f830e5e9c11f58e2eb4d9e97396f11c952 (diff) | |
download | jitsi-5e5bdf5c590849fb82d441e3cdeb15cab9eb4762.zip jitsi-5e5bdf5c590849fb82d441e3cdeb15cab9eb4762.tar.gz jitsi-5e5bdf5c590849fb82d441e3cdeb15cab9eb4762.tar.bz2 |
Add test with rare prefix to ensure that it stays useable.
Diffstat (limited to 'test')
-rw-r--r-- | test/net/java/sip/communicator/impl/protocol/irc/ChatRoomIrcImplTest.java | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/test/net/java/sip/communicator/impl/protocol/irc/ChatRoomIrcImplTest.java b/test/net/java/sip/communicator/impl/protocol/irc/ChatRoomIrcImplTest.java index a10c030..6462df4 100644 --- a/test/net/java/sip/communicator/impl/protocol/irc/ChatRoomIrcImplTest.java +++ b/test/net/java/sip/communicator/impl/protocol/irc/ChatRoomIrcImplTest.java @@ -25,7 +25,7 @@ public class ChatRoomIrcImplTest this.stackMock = EasyMock.createMock(IrcStack.class); EasyMock.expect(this.providerMock.getIrcStack()).andReturn(stackMock); EasyMock.expect(this.stackMock.getChannelTypes()).andReturn( - Collections.unmodifiableSet(Sets.newHashSet('#', '$'))); + Collections.unmodifiableSet(Sets.newHashSet('#', '&'))); } //@Test @@ -425,4 +425,19 @@ public class ChatRoomIrcImplTest { } } + + /** + * Test creating chat room with alternative prefix. Special check to ensure + * that we don't forget about less often used prefixes. + */ + // @Test + public void testChatRoomWithAlternativePrefix() + { + EasyMock.replay(this.providerMock, this.stackMock); + ChatRoomIrcImpl alternative = + new ChatRoomIrcImpl("&MyAlternative-channel-prefix", + this.providerMock); + Assert.assertEquals("&MyAlternative-channel-prefix", + alternative.getIdentifier()); + } } |