Skip to content

Commit

Permalink
[sinttest] Use set operation instead of Java stream API in mucDestroy…
Browse files Browse the repository at this point in the history
…Test()
  • Loading branch information
Flowdalic committed May 20, 2024
1 parent 35f621b commit bf6b7bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void roomDestroyed(MultiUserChat alternateMUC, String reason) {
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).");
}

Expand Down

0 comments on commit bf6b7bd

Please sign in to comment.