1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 02:27: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)); message.addExtension(new MamResultExtension("g27", "34482-21985-73620", forwarded));
// FIXME: The order of assertEquals is reversed, fix it by switching it. assertEquals(mamQueryResultExample, message.toXML(StreamOpen.CLIENT_NAMESPACE).toString());
assertEquals(message.toXML(StreamOpen.CLIENT_NAMESPACE).toString(), mamQueryResultExample);
MamResultExtension mamResultExtension = MamResultExtension.from(message); MamResultExtension mamResultExtension = MamResultExtension.from(message);