diff options
-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()); + } } |