mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
[sinttest] Use set operation instead of Java stream API in mucDestroyTest()
This commit is contained in:
parent
35f621be05
commit
bf6b7bd692
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ public class MultiUserChatIntegrationTest extends AbstractMultiUserChatIntegrati
|
||||||
muc.addUserStatusListener(userStatusListener);
|
muc.addUserStatusListener(userStatusListener);
|
||||||
|
|
||||||
// These would be a test implementation bug, not assertion failure.
|
// 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).");
|
throw new IllegalStateException("Expected user to have joined a room '" + mucAddress + "' (but does not appear to have done so).");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue