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:
parent
0ca8b726bd
commit
010ab0d07a
1 changed files with 6 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue