diff options
Diffstat (limited to 'test/net/java/sip/communicator/impl/protocol/irc/ChatRoomIrcImplTest.java')
-rw-r--r-- | test/net/java/sip/communicator/impl/protocol/irc/ChatRoomIrcImplTest.java | 14 |
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) |