1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 00:59:39 +02:00

[sinttest]: Fix order of arguments in assertEquals()

When using 'assertEquals', the first argument is to be the _expected_ value, the second the _actual_ value. When this is inverted, the functional test will still succeed, but any generated error message ("Expected X, got Y") will be wrong.

This commit fixes the order of arguments, mostly in the sinttest module.
This commit is contained in:
Guus der Kinderen 2024-04-10 11:40:55 +02:00
parent 2cbdfa0153
commit c67292ea86
6 changed files with 15 additions and 14 deletions

View file

@ -99,7 +99,7 @@ public class STUNResolverTest extends SmackTestCase {
stunResolver.addCandidate(cand3);
stunResolver.addCandidate(cand4);
assertEquals(stunResolver.getPreferredCandidate(), candH);
assertEquals(candH, stunResolver.getPreferredCandidate());
}
/**
@ -127,7 +127,7 @@ public class STUNResolverTest extends SmackTestCase {
iceResolver.addCandidate(cand3);
iceResolver.addCandidate(cand4);
assertEquals(iceResolver.getPreferredCandidate(), candH);
assertEquals(candH, iceResolver.getPreferredCandidate());
}
/**

View file

@ -65,7 +65,7 @@ public class TransportCandidateTest extends SmackTestCase {
candList.add(cand4);
Collections.sort(candList);
assertEquals(candList.get(candList.size() - 1), candH);
assertEquals(candH, candList.get(candList.size() - 1));
}
protected int getMaxConnections() {