From b5413971191cdfe62244918a9f676c086406e38a Mon Sep 17 00:00:00 2001 From: Dan Caseley Date: Fri, 23 Apr 2021 15:14:31 +0100 Subject: [PATCH 1/2] [sinttest] Fix typo in muc XEP reference for test --- .../jivesoftware/smackx/muc/MultiUserChatIntegrationTest.java | 2 +- 1 file changed, 1 insertion(+), 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 f091123bf..ec0156230 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 @@ -324,7 +324,7 @@ public class MultiUserChatIntegrationTest extends AbstractSmackIntegrationTest { * to all occupants... * * - *

From XEP-0045 § 9.6:

+ *

From XEP-0045 § 9.7:

*
* The service MUST then send updated presence from this individual to all occupants, indicating the removal of * moderator status... From fc191e4e1998a5464fd508a4e97bde94656761cc Mon Sep 17 00:00:00 2001 From: Dan Caseley Date: Fri, 23 Apr 2021 15:14:51 +0100 Subject: [PATCH 2/2] [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");