aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDanny van Heumen <danny@dannyvanheumen.nl>2014-08-14 20:26:12 +0200
committerDanny van Heumen <danny@dannyvanheumen.nl>2014-08-14 20:26:12 +0200
commit985644f830e5e9c11f58e2eb4d9e97396f11c952 (patch)
tree1180c50bbad6b2be6fae8883607fd84d3f7e3f4d /test
parent262d2bfe1d02c0f47bcdf0e1d16138542d011864 (diff)
downloadjitsi-985644f830e5e9c11f58e2eb4d9e97396f11c952.zip
jitsi-985644f830e5e9c11f58e2eb4d9e97396f11c952.tar.gz
jitsi-985644f830e5e9c11f58e2eb4d9e97396f11c952.tar.bz2
Auto-prefix channel name with # if no valid prefix found.
Diffstat (limited to 'test')
-rw-r--r--test/net/java/sip/communicator/impl/protocol/irc/ChatRoomIrcImplTest.java14
1 files changed, 4 insertions, 10 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 8381e40..a10c030 100644
--- a/test/net/java/sip/communicator/impl/protocol/irc/ChatRoomIrcImplTest.java
+++ b/test/net/java/sip/communicator/impl/protocol/irc/ChatRoomIrcImplTest.java
@@ -77,18 +77,12 @@ public class ChatRoomIrcImplTest
}
}
- //@Test(expected = IllegalArgumentException.class)
- public void testIllegalNameBadPrefix()
+ //@Test
+ public void testAutoPrefixBadChannelName()
{
EasyMock.replay(this.providerMock, this.stackMock);
- try
- {
- new ChatRoomIrcImpl("!test", this.providerMock);
- fail("Should have failed with IAE.");
- }
- catch (IllegalArgumentException e)
- {
- }
+ ChatRoomIrcImpl room = new ChatRoomIrcImpl("!test", this.providerMock);
+ Assert.assertEquals("#!test", room.getIdentifier());
}
//@Test(expected = IllegalArgumentException.class)