From e9bcdf3e6dfe85d87e652c809c3ffb9159878d8f Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sat, 7 Sep 2019 17:05:37 +0200 Subject: [PATCH] QueryArchiveTest: Call assertsEquals with the correct order of arguments first expected, then actual. --- .../java/org/jivesoftware/smackx/mam/QueryArchiveTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/smack-experimental/src/test/java/org/jivesoftware/smackx/mam/QueryArchiveTest.java b/smack-experimental/src/test/java/org/jivesoftware/smackx/mam/QueryArchiveTest.java index bcd4e00ab..44990f420 100644 --- a/smack-experimental/src/test/java/org/jivesoftware/smackx/mam/QueryArchiveTest.java +++ b/smack-experimental/src/test/java/org/jivesoftware/smackx/mam/QueryArchiveTest.java @@ -82,8 +82,7 @@ public class QueryArchiveTest extends MamTest { message.addExtension(new MamResultExtension("g27", "34482-21985-73620", forwarded)); - // FIXME: The order of assertEquals is reversed, fix it by switching it. - assertEquals(message.toXML(StreamOpen.CLIENT_NAMESPACE).toString(), mamQueryResultExample); + assertEquals(mamQueryResultExample, message.toXML(StreamOpen.CLIENT_NAMESPACE).toString()); MamResultExtension mamResultExtension = MamResultExtension.from(message);