diff options
author | Damian Minkov <damencho@jitsi.org> | 2006-09-27 12:30:01 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2006-09-27 12:30:01 +0000 |
commit | 04ff4e5d31bc1d6b933ec9d7e5ae9246b8938479 (patch) | |
tree | f54a2771c433b77e370af1bcf87231b05d8600e4 /test/net/java/sip/communicator/slick | |
parent | 390e659a303f2ab14834cf9768033cc2e720f9cc (diff) | |
download | jitsi-04ff4e5d31bc1d6b933ec9d7e5ae9246b8938479.zip jitsi-04ff4e5d31bc1d6b933ec9d7e5ae9246b8938479.tar.gz jitsi-04ff4e5d31bc1d6b933ec9d7e5ae9246b8938479.tar.bz2 |
Catch OperationFailedException
Diffstat (limited to 'test/net/java/sip/communicator/slick')
-rw-r--r-- | test/net/java/sip/communicator/slick/protocol/icq/TestOperationSetPersistentPresence.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/test/net/java/sip/communicator/slick/protocol/icq/TestOperationSetPersistentPresence.java b/test/net/java/sip/communicator/slick/protocol/icq/TestOperationSetPersistentPresence.java index 8a21b89..6f67b71 100644 --- a/test/net/java/sip/communicator/slick/protocol/icq/TestOperationSetPersistentPresence.java +++ b/test/net/java/sip/communicator/slick/protocol/icq/TestOperationSetPersistentPresence.java @@ -293,8 +293,16 @@ public class TestOperationSetPersistentPresence .addServerStoredGroupChangeListener(groupChangeCollector); //create the group - opSetPersPresence.createServerStoredContactGroup( - opSetPersPresence.getServerStoredContactListRoot(), testGroupName); + try + { + opSetPersPresence.createServerStoredContactGroup( + opSetPersPresence.getServerStoredContactListRoot(), + testGroupName); + } + catch (OperationFailedException ex) + { + fail("Cannot create group " + ex.getMessage()); + } groupChangeCollector.waitForEvent(10000); @@ -317,7 +325,6 @@ public class TestOperationSetPersistentPresence group); assertEquals("New group name", testGroupName, group.getGroupName()); - } |