From 96930f78e8a78049f54c9d1bc06019b019181cb2 Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Wed, 30 Mar 2005 02:01:21 +0000 Subject: [PATCH] Updated since Roster#removeEntry now may thrown an exception. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2471 b35dd754-fafc-0310-a699-88a17e54d16e --- test/org/jivesoftware/smack/RosterTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/org/jivesoftware/smack/RosterTest.java b/test/org/jivesoftware/smack/RosterTest.java index b79a64020..0b906b22a 100644 --- a/test/org/jivesoftware/smack/RosterTest.java +++ b/test/org/jivesoftware/smack/RosterTest.java @@ -408,7 +408,12 @@ public class RosterTest extends SmackTestCase { Iterator it = getConnection(0).getRoster().getEntries(); while (it.hasNext()) { RosterEntry entry = (RosterEntry) it.next(); - getConnection(0).getRoster().removeEntry(entry); + try { + getConnection(0).getRoster().removeEntry(entry); + } catch (XMPPException e) { + e.printStackTrace(); + fail(e.getMessage()); + } } try { Thread.sleep(700);