From 010ab0d07a054c4884462e52531005d0c023e4bc Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 4 Feb 2013 13:33:28 +0000 Subject: [PATCH] VCardTest: Use VCard.equal() in order to test equality and not the String representation, since the elements within the vcard could be in a different order git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@13435 b35dd754-fafc-0310-a699-88a17e54d16e --- test/org/jivesoftware/smackx/VCardTest.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/org/jivesoftware/smackx/VCardTest.java b/test/org/jivesoftware/smackx/VCardTest.java index d3d011abe..0854d7fc0 100644 --- a/test/org/jivesoftware/smackx/VCardTest.java +++ b/test/org/jivesoftware/smackx/VCardTest.java @@ -48,7 +48,9 @@ public class VCardTest extends SmackTestCase { fail(e.getMessage()); } - assertEquals("Should load own VCard successfully", origVCard.toString(), loaded.toString()); + //assertEquals("Should load own VCard successfully", origVCard.toString(), loaded.toString()); + assertEquals("Should load own VCard successfully", origVCard, loaded); + loaded = new VCard(); try { @@ -58,7 +60,9 @@ public class VCardTest extends SmackTestCase { fail(e.getMessage()); } - assertEquals("Should load another user's VCard successfully", origVCard.toString(), loaded.toString()); + //assertEquals("Should load another user's VCard successfully", origVCard.toString(), loaded.toString()); + assertEquals("Should load another user's VCard successfully", origVCard, loaded); + } public void testNoWorkHomeSpecifier_EMAIL() throws Throwable {