1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-25 15:52:06 +01:00

Merge pull request #436 from guusdk/sint-use-specific-assertions

In tests, use specific assertion implementation
This commit is contained in:
Florian Schmaus 2020-10-27 11:57:21 +01:00 committed by GitHub
commit 5f66685949
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,9 @@
*/ */
package org.jivesoftware.smackx.muc; package org.jivesoftware.smackx.muc;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.List; import java.util.List;
@ -144,9 +146,9 @@ public class MultiUserChatIntegrationTest extends AbstractSmackIntegrationTest {
muc.addUserStatusListener(userStatusListener); muc.addUserStatusListener(userStatusListener);
assertTrue(mucManagerOne.getJoinedRooms().size() == 1); assertEquals(1, mucManagerOne.getJoinedRooms().size());
assertTrue(muc.getOccupantsCount() == 1); assertEquals(1, muc.getOccupantsCount());
assertTrue(muc.getNickname() != null); assertNotNull(muc.getNickname());
try { try {
muc.destroy("Dummy reason", null); muc.destroy("Dummy reason", null);
@ -155,8 +157,8 @@ public class MultiUserChatIntegrationTest extends AbstractSmackIntegrationTest {
muc.removeUserStatusListener(userStatusListener); muc.removeUserStatusListener(userStatusListener);
} }
assertTrue(mucManagerOne.getJoinedRooms().size() == 0); assertEquals(0, mucManagerOne.getJoinedRooms().size());
assertTrue(muc.getOccupantsCount() == 0); assertEquals(0, muc.getOccupantsCount());
assertTrue(muc.getNickname() == null); assertNull(muc.getNickname());
} }
} }