diff options
Diffstat (limited to 'test/net/java/sip/communicator/impl/protocol/irc/ModeTest.java')
-rw-r--r-- | test/net/java/sip/communicator/impl/protocol/irc/ModeTest.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/net/java/sip/communicator/impl/protocol/irc/ModeTest.java b/test/net/java/sip/communicator/impl/protocol/irc/ModeTest.java index 843bbe4..096c507 100644 --- a/test/net/java/sip/communicator/impl/protocol/irc/ModeTest.java +++ b/test/net/java/sip/communicator/impl/protocol/irc/ModeTest.java @@ -6,6 +6,7 @@ package net.java.sip.communicator.impl.protocol.irc; import junit.framework.*; +import net.java.sip.communicator.impl.protocol.irc.exception.*; import net.java.sip.communicator.service.protocol.*; public class ModeTest @@ -28,7 +29,7 @@ public class ModeTest .assertTrue(Mode.OPERATOR.getRole() instanceof ChatRoomMemberRole); } - public void testGetBySymbol() + public void testGetBySymbol() throws UnknownModeException { Assert.assertSame(Mode.OPERATOR, Mode.bySymbol('o')); } @@ -38,9 +39,9 @@ public class ModeTest try { Mode.bySymbol('&'); - Assert.fail("Expected IllegalArgumentException"); + Assert.fail("Expected UnknownModeException"); } - catch (IllegalArgumentException e) + catch (UnknownModeException e) { } } |