[sinttest] Use correct camel case in method name: s/MUC/muc/

See also https://google.github.io/styleguide/javaguide.html#s5.3-camel-case
This commit is contained in:
Florian Schmaus 2021-06-21 14:52:18 +02:00
parent 2e18442b11
commit 6434e77336
3 changed files with 15 additions and 15 deletions

View File

@ -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();

View File

@ -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 {

View File

@ -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);