From fc191e4e1998a5464fd508a4e97bde94656761cc Mon Sep 17 00:00:00 2001 From: Dan Caseley Date: Fri, 23 Apr 2021 15:14:51 +0100 Subject: [PATCH] [sinttest] Add XEP reference for muc destroy test --- .../smackx/muc/MultiUserChatIntegrationTest.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/smack-integration-test/src/main/java/org/jivesoftware/smackx/muc/MultiUserChatIntegrationTest.java b/smack-integration-test/src/main/java/org/jivesoftware/smackx/muc/MultiUserChatIntegrationTest.java index ec0156230..3c4a8f5d4 100644 --- a/smack-integration-test/src/main/java/org/jivesoftware/smackx/muc/MultiUserChatIntegrationTest.java +++ b/smack-integration-test/src/main/java/org/jivesoftware/smackx/muc/MultiUserChatIntegrationTest.java @@ -746,7 +746,18 @@ public class MultiUserChatIntegrationTest extends AbstractSmackIntegrationTest { } - @SmackIntegrationTest + /** + * Asserts that a user who is present when another user undergoes a role change receives that change as a presence update + * + *

From XEP-0045 ยง 10.9:

+ *
+ * A room owner MUST be able to destroy a room, especially if the room is persistent... The room removes all users from the room... and destroys the room + *
+ * + * @throws TimeoutException when roomDestroyed event doesn't get fired + * @throws Exception when other errors occur + */ + @SmackIntegrationTest public void mucDestroyTest() throws TimeoutException, Exception { EntityBareJid mucAddress = getRandomRoom("smack-inttest-join-leave");