From 6434e773363f64dee7ef4b77ab9e1e49a9f93d46 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 21 Jun 2021 14:52:18 +0200 Subject: [PATCH] [sinttest] Use correct camel case in method name: s/MUC/muc/ See also https://google.github.io/styleguide/javaguide.html#s5.3-camel-case --- .../AbstractMultiUserChatIntegrationTest.java | 4 ++-- .../muc/MultiUserChatIntegrationTest.java | 2 +- ...AffiliationsPrivilegesIntegrationTest.java | 24 +++++++++---------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/smack-integration-test/src/main/java/org/jivesoftware/smackx/muc/AbstractMultiUserChatIntegrationTest.java b/smack-integration-test/src/main/java/org/jivesoftware/smackx/muc/AbstractMultiUserChatIntegrationTest.java index 7b1142081..597b767e6 100644 --- a/smack-integration-test/src/main/java/org/jivesoftware/smackx/muc/AbstractMultiUserChatIntegrationTest.java +++ b/smack-integration-test/src/main/java/org/jivesoftware/smackx/muc/AbstractMultiUserChatIntegrationTest.java @@ -90,14 +90,14 @@ public class AbstractMultiUserChatIntegrationTest extends AbstractSmackIntegrati muc.destroy("test fixture teardown", null); } - static void createMUC(MultiUserChat muc, String resourceName) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, InterruptedException, MultiUserChatException.MucAlreadyJoinedException, SmackException.NotConnectedException, MultiUserChatException.MissingMucCreationAcknowledgeException, MultiUserChatException.NotAMucServiceException, XmppStringprepException { + static void createMuc(MultiUserChat muc, String resourceName) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, InterruptedException, MultiUserChatException.MucAlreadyJoinedException, SmackException.NotConnectedException, MultiUserChatException.MissingMucCreationAcknowledgeException, MultiUserChatException.NotAMucServiceException, XmppStringprepException { MultiUserChat.MucCreateConfigFormHandle handle = muc.create(Resourcepart.from(resourceName)); if (handle != null) { handle.makeInstant(); } } - static void createModeratedMUC(MultiUserChat muc, String resourceName) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, InterruptedException, MultiUserChatException.MucAlreadyJoinedException, SmackException.NotConnectedException, MultiUserChatException.MissingMucCreationAcknowledgeException, MultiUserChatException.NotAMucServiceException, XmppStringprepException { + static void createModeratedMuc(MultiUserChat muc, String resourceName) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, InterruptedException, MultiUserChatException.MucAlreadyJoinedException, SmackException.NotConnectedException, MultiUserChatException.MissingMucCreationAcknowledgeException, MultiUserChatException.NotAMucServiceException, XmppStringprepException { muc.create(Resourcepart.from(resourceName)); Form configForm = muc.getConfigurationForm(); FillableForm answerForm = configForm.getFillableForm(); 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 bcaedfb8c..36fa47815 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 @@ -131,7 +131,7 @@ public class MultiUserChatIntegrationTest extends AbstractMultiUserChatIntegrati } }); - createMUC(mucAsSeenByOne, "one-" + randomString); + createMuc(mucAsSeenByOne, "one-" + randomString); mucAsSeenByTwo.join(Resourcepart.from("two-" + randomString)); mucAsSeenByOne.sendMessage(mucMessage); try { diff --git a/smack-integration-test/src/main/java/org/jivesoftware/smackx/muc/MultiUserChatRolesAffiliationsPrivilegesIntegrationTest.java b/smack-integration-test/src/main/java/org/jivesoftware/smackx/muc/MultiUserChatRolesAffiliationsPrivilegesIntegrationTest.java index 1943d1a0b..966ec3e97 100644 --- a/smack-integration-test/src/main/java/org/jivesoftware/smackx/muc/MultiUserChatRolesAffiliationsPrivilegesIntegrationTest.java +++ b/smack-integration-test/src/main/java/org/jivesoftware/smackx/muc/MultiUserChatRolesAffiliationsPrivilegesIntegrationTest.java @@ -79,7 +79,7 @@ public class MultiUserChatRolesAffiliationsPrivilegesIntegrationTest extends Abs } }); - createMUC(mucAsSeenByOne, "one-" + randomString); + createMuc(mucAsSeenByOne, "one-" + randomString); final Resourcepart nicknameTwo = Resourcepart.from("two-" + randomString); mucAsSeenByTwo.join(nicknameTwo); @@ -127,7 +127,7 @@ public class MultiUserChatRolesAffiliationsPrivilegesIntegrationTest extends Abs } }); - createMUC(mucAsSeenByOne, "one-" + randomString); + createMuc(mucAsSeenByOne, "one-" + randomString); final Resourcepart nicknameTwo = Resourcepart.from("two-" + randomString); final Resourcepart nicknameThree = Resourcepart.from("three-" + randomString); mucAsSeenByTwo.join(nicknameTwo); @@ -175,7 +175,7 @@ public class MultiUserChatRolesAffiliationsPrivilegesIntegrationTest extends Abs } }); - createMUC(mucAsSeenByOne, "one-" + randomString); + createMuc(mucAsSeenByOne, "one-" + randomString); final Resourcepart nicknameTwo = Resourcepart.from("two-" + randomString); mucAsSeenByTwo.join(nicknameTwo); @@ -222,7 +222,7 @@ public class MultiUserChatRolesAffiliationsPrivilegesIntegrationTest extends Abs } }); - createMUC(mucAsSeenByOne, "one-" + randomString); + createMuc(mucAsSeenByOne, "one-" + randomString); final Resourcepart nicknameTwo = Resourcepart.from("two-" + randomString); final Resourcepart nicknameThree = Resourcepart.from("three-" + randomString); mucAsSeenByTwo.join(nicknameTwo); @@ -270,7 +270,7 @@ public class MultiUserChatRolesAffiliationsPrivilegesIntegrationTest extends Abs } }); - createMUC(mucAsSeenByOne, "one-" + randomString); + createMuc(mucAsSeenByOne, "one-" + randomString); final Resourcepart nicknameTwo = Resourcepart.from("two-" + randomString); mucAsSeenByTwo.join(nicknameTwo); mucAsSeenByOne.revokeVoice(nicknameTwo); @@ -315,7 +315,7 @@ public class MultiUserChatRolesAffiliationsPrivilegesIntegrationTest extends Abs } }); - createMUC(mucAsSeenByOne, "one-" + randomString); + createMuc(mucAsSeenByOne, "one-" + randomString); final Resourcepart nicknameTwo = Resourcepart.from("two-" + randomString); final Resourcepart nicknameThree = Resourcepart.from("three-" + randomString); mucAsSeenByTwo.join(nicknameTwo); @@ -363,7 +363,7 @@ public class MultiUserChatRolesAffiliationsPrivilegesIntegrationTest extends Abs } }); - createMUC(mucAsSeenByOne, "one-" + randomString); + createMuc(mucAsSeenByOne, "one-" + randomString); final Resourcepart nicknameTwo = Resourcepart.from("two-" + randomString); mucAsSeenByTwo.join(nicknameTwo); @@ -411,7 +411,7 @@ public class MultiUserChatRolesAffiliationsPrivilegesIntegrationTest extends Abs } }); - createMUC(mucAsSeenByOne, "one-" + randomString); + createMuc(mucAsSeenByOne, "one-" + randomString); final Resourcepart nicknameTwo = Resourcepart.from("two-" + randomString); final Resourcepart nicknameThree = Resourcepart.from("three-" + randomString); mucAsSeenByTwo.join(nicknameTwo); @@ -458,7 +458,7 @@ public class MultiUserChatRolesAffiliationsPrivilegesIntegrationTest extends Abs } }); - createMUC(mucAsSeenByOne, "one-" + randomString); + createMuc(mucAsSeenByOne, "one-" + randomString); final Resourcepart nicknameTwo = Resourcepart.from("two-" + randomString); mucAsSeenByTwo.join(nicknameTwo); @@ -506,7 +506,7 @@ public class MultiUserChatRolesAffiliationsPrivilegesIntegrationTest extends Abs } }); - createMUC(mucAsSeenByOne, "one-" + randomString); + createMuc(mucAsSeenByOne, "one-" + randomString); final Resourcepart nicknameTwo = Resourcepart.from("two-" + randomString); final Resourcepart nicknameThree = Resourcepart.from("three-" + randomString); mucAsSeenByTwo.join(nicknameTwo); @@ -543,7 +543,7 @@ public class MultiUserChatRolesAffiliationsPrivilegesIntegrationTest extends Abs MultiUserChat mucAsSeenByOne = mucManagerOne.getMultiUserChat(mucAddress); MultiUserChat mucAsSeenByTwo = mucManagerTwo.getMultiUserChat(mucAddress); - createMUC(mucAsSeenByOne, "one-" + randomString); + createMuc(mucAsSeenByOne, "one-" + randomString); final Resourcepart nicknameTwo = Resourcepart.from("two-" + randomString); mucAsSeenByTwo.join(nicknameTwo); @@ -590,7 +590,7 @@ public class MultiUserChatRolesAffiliationsPrivilegesIntegrationTest extends Abs MultiUserChat mucAsSeenByTwo = mucManagerTwo.getMultiUserChat(mucAddress); MultiUserChat mucAsSeenByThree = mucManagerThree.getMultiUserChat(mucAddress); - createMUC(mucAsSeenByOne, "one-" + randomString); + createMuc(mucAsSeenByOne, "one-" + randomString); final Resourcepart nicknameTwo = Resourcepart.from("two-" + randomString); final Resourcepart nicknameThree = Resourcepart.from("three-" + randomString); mucAsSeenByTwo.join(nicknameTwo);