mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-22 10:37:59 +01:00
Merge pull request #436 from guusdk/sint-use-specific-assertions
In tests, use specific assertion implementation
This commit is contained in:
commit
5f66685949
1 changed files with 8 additions and 6 deletions
|
@ -16,7 +16,9 @@
|
|||
*/
|
||||
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.assertNull;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -144,9 +146,9 @@ public class MultiUserChatIntegrationTest extends AbstractSmackIntegrationTest {
|
|||
|
||||
muc.addUserStatusListener(userStatusListener);
|
||||
|
||||
assertTrue(mucManagerOne.getJoinedRooms().size() == 1);
|
||||
assertTrue(muc.getOccupantsCount() == 1);
|
||||
assertTrue(muc.getNickname() != null);
|
||||
assertEquals(1, mucManagerOne.getJoinedRooms().size());
|
||||
assertEquals(1, muc.getOccupantsCount());
|
||||
assertNotNull(muc.getNickname());
|
||||
|
||||
try {
|
||||
muc.destroy("Dummy reason", null);
|
||||
|
@ -155,8 +157,8 @@ public class MultiUserChatIntegrationTest extends AbstractSmackIntegrationTest {
|
|||
muc.removeUserStatusListener(userStatusListener);
|
||||
}
|
||||
|
||||
assertTrue(mucManagerOne.getJoinedRooms().size() == 0);
|
||||
assertTrue(muc.getOccupantsCount() == 0);
|
||||
assertTrue(muc.getNickname() == null);
|
||||
assertEquals(0, mucManagerOne.getJoinedRooms().size());
|
||||
assertEquals(0, muc.getOccupantsCount());
|
||||
assertNull(muc.getNickname());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue