1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 12:37:58 +01:00

QueryArchiveTest: Call assertsEquals with the correct order of arguments

first expected, then actual.
This commit is contained in:
Florian Schmaus 2019-09-07 17:05:37 +02:00
parent e8819d31dd
commit e9bcdf3e6d

View file

@ -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);