1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 22:32:06 +01:00

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
This commit is contained in:
Florian Schmaus 2013-02-04 13:33:28 +00:00 committed by flow
parent 0ca8b726bd
commit 010ab0d07a

View file

@ -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 {