aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDanny van Heumen <danny@dannyvanheumen.nl>2014-11-02 18:32:16 +0100
committerDanny van Heumen <danny@dannyvanheumen.nl>2014-11-02 18:32:16 +0100
commit29a35dac747c26f8693c49408f943f9fd84106aa (patch)
tree3c3e6ddebdc9b1a7c9e70aeb2ccc87f29d15ae3b /test
parent11f4a54a9e6660afa3af41a4b5616c851b8b329a (diff)
downloadjitsi-29a35dac747c26f8693c49408f943f9fd84106aa.zip
jitsi-29a35dac747c26f8693c49408f943f9fd84106aa.tar.gz
jitsi-29a35dac747c26f8693c49408f943f9fd84106aa.tar.bz2
Explicitly acknowledge and handle case of unknown mode symbol.
Diffstat (limited to 'test')
-rw-r--r--test/net/java/sip/communicator/impl/protocol/irc/ModeTest.java7
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)
{
}
}