1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-25 12:08:00 +01:00

[sinttest] Use set operation instead of Java stream API in mucDestroyTest()

This commit is contained in:
Florian Schmaus 2024-05-20 23:08:53 +02:00
parent 35f621be05
commit bf6b7bd692

View file

@ -111,7 +111,7 @@ public class MultiUserChatIntegrationTest extends AbstractMultiUserChatIntegrati
muc.addUserStatusListener(userStatusListener);
// These would be a test implementation bug, not assertion failure.
if (mucManagerOne.getJoinedRooms().stream().noneMatch(room -> room.equals(mucAddress))) {
if (!mucManagerOne.getJoinedRooms().contains(mucAddress)) {
throw new IllegalStateException("Expected user to have joined a room '" + mucAddress + "' (but does not appear to have done so).");
}