1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 12:02:05 +01:00

[sinttest] Directly use rosterTwo instead of Roster.getInstanceFor()

This commit is contained in:
Florian Schmaus 2024-05-31 23:09:35 +02:00
parent 3749f524f5
commit 1f34f3e613

View file

@ -142,7 +142,7 @@ public class RosterIntegrationTest extends AbstractSmackIntegrationTest {
"whose value is \"subscribe\").") "whose value is \"subscribe\").")
public void testRosterPushAfterSubscriptionRequest() throws Exception { public void testRosterPushAfterSubscriptionRequest() throws Exception {
IntegrationTestRosterUtil.ensureBothAccountsAreNotInEachOthersRoster(conOne, conTwo); IntegrationTestRosterUtil.ensureBothAccountsAreNotInEachOthersRoster(conOne, conTwo);
Roster.getInstanceFor(conTwo).setSubscriptionMode(Roster.SubscriptionMode.manual); // prevents a race condition when asserting the captured roster entry. rosterTwo.setSubscriptionMode(Roster.SubscriptionMode.manual); // prevents a race condition when asserting the captured roster entry.
final ResultSyncPoint<RosterEntry, Exception> added = new ResultSyncPoint<>(); final ResultSyncPoint<RosterEntry, Exception> added = new ResultSyncPoint<>();
final RosterListener rosterListener = new AbstractRosterListener() { final RosterListener rosterListener = new AbstractRosterListener() {