mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-22 10:37:59 +01:00
[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:
parent
2e18442b11
commit
6434e77336
3 changed files with 15 additions and 15 deletions
|
@ -90,14 +90,14 @@ public class AbstractMultiUserChatIntegrationTest extends AbstractSmackIntegrati
|
||||||
muc.destroy("test fixture teardown", null);
|
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));
|
MultiUserChat.MucCreateConfigFormHandle handle = muc.create(Resourcepart.from(resourceName));
|
||||||
if (handle != null) {
|
if (handle != null) {
|
||||||
handle.makeInstant();
|
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));
|
muc.create(Resourcepart.from(resourceName));
|
||||||
Form configForm = muc.getConfigurationForm();
|
Form configForm = muc.getConfigurationForm();
|
||||||
FillableForm answerForm = configForm.getFillableForm();
|
FillableForm answerForm = configForm.getFillableForm();
|
||||||
|
|
|
@ -131,7 +131,7 @@ public class MultiUserChatIntegrationTest extends AbstractMultiUserChatIntegrati
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
createMUC(mucAsSeenByOne, "one-" + randomString);
|
createMuc(mucAsSeenByOne, "one-" + randomString);
|
||||||
mucAsSeenByTwo.join(Resourcepart.from("two-" + randomString));
|
mucAsSeenByTwo.join(Resourcepart.from("two-" + randomString));
|
||||||
mucAsSeenByOne.sendMessage(mucMessage);
|
mucAsSeenByOne.sendMessage(mucMessage);
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -79,7 +79,7 @@ public class MultiUserChatRolesAffiliationsPrivilegesIntegrationTest extends Abs
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
createMUC(mucAsSeenByOne, "one-" + randomString);
|
createMuc(mucAsSeenByOne, "one-" + randomString);
|
||||||
final Resourcepart nicknameTwo = Resourcepart.from("two-" + randomString);
|
final Resourcepart nicknameTwo = Resourcepart.from("two-" + randomString);
|
||||||
mucAsSeenByTwo.join(nicknameTwo);
|
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 nicknameTwo = Resourcepart.from("two-" + randomString);
|
||||||
final Resourcepart nicknameThree = Resourcepart.from("three-" + randomString);
|
final Resourcepart nicknameThree = Resourcepart.from("three-" + randomString);
|
||||||
mucAsSeenByTwo.join(nicknameTwo);
|
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);
|
final Resourcepart nicknameTwo = Resourcepart.from("two-" + randomString);
|
||||||
mucAsSeenByTwo.join(nicknameTwo);
|
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 nicknameTwo = Resourcepart.from("two-" + randomString);
|
||||||
final Resourcepart nicknameThree = Resourcepart.from("three-" + randomString);
|
final Resourcepart nicknameThree = Resourcepart.from("three-" + randomString);
|
||||||
mucAsSeenByTwo.join(nicknameTwo);
|
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);
|
final Resourcepart nicknameTwo = Resourcepart.from("two-" + randomString);
|
||||||
mucAsSeenByTwo.join(nicknameTwo);
|
mucAsSeenByTwo.join(nicknameTwo);
|
||||||
mucAsSeenByOne.revokeVoice(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 nicknameTwo = Resourcepart.from("two-" + randomString);
|
||||||
final Resourcepart nicknameThree = Resourcepart.from("three-" + randomString);
|
final Resourcepart nicknameThree = Resourcepart.from("three-" + randomString);
|
||||||
mucAsSeenByTwo.join(nicknameTwo);
|
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);
|
final Resourcepart nicknameTwo = Resourcepart.from("two-" + randomString);
|
||||||
mucAsSeenByTwo.join(nicknameTwo);
|
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 nicknameTwo = Resourcepart.from("two-" + randomString);
|
||||||
final Resourcepart nicknameThree = Resourcepart.from("three-" + randomString);
|
final Resourcepart nicknameThree = Resourcepart.from("three-" + randomString);
|
||||||
mucAsSeenByTwo.join(nicknameTwo);
|
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);
|
final Resourcepart nicknameTwo = Resourcepart.from("two-" + randomString);
|
||||||
mucAsSeenByTwo.join(nicknameTwo);
|
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 nicknameTwo = Resourcepart.from("two-" + randomString);
|
||||||
final Resourcepart nicknameThree = Resourcepart.from("three-" + randomString);
|
final Resourcepart nicknameThree = Resourcepart.from("three-" + randomString);
|
||||||
mucAsSeenByTwo.join(nicknameTwo);
|
mucAsSeenByTwo.join(nicknameTwo);
|
||||||
|
@ -543,7 +543,7 @@ public class MultiUserChatRolesAffiliationsPrivilegesIntegrationTest extends Abs
|
||||||
MultiUserChat mucAsSeenByOne = mucManagerOne.getMultiUserChat(mucAddress);
|
MultiUserChat mucAsSeenByOne = mucManagerOne.getMultiUserChat(mucAddress);
|
||||||
MultiUserChat mucAsSeenByTwo = mucManagerTwo.getMultiUserChat(mucAddress);
|
MultiUserChat mucAsSeenByTwo = mucManagerTwo.getMultiUserChat(mucAddress);
|
||||||
|
|
||||||
createMUC(mucAsSeenByOne, "one-" + randomString);
|
createMuc(mucAsSeenByOne, "one-" + randomString);
|
||||||
final Resourcepart nicknameTwo = Resourcepart.from("two-" + randomString);
|
final Resourcepart nicknameTwo = Resourcepart.from("two-" + randomString);
|
||||||
mucAsSeenByTwo.join(nicknameTwo);
|
mucAsSeenByTwo.join(nicknameTwo);
|
||||||
|
|
||||||
|
@ -590,7 +590,7 @@ public class MultiUserChatRolesAffiliationsPrivilegesIntegrationTest extends Abs
|
||||||
MultiUserChat mucAsSeenByTwo = mucManagerTwo.getMultiUserChat(mucAddress);
|
MultiUserChat mucAsSeenByTwo = mucManagerTwo.getMultiUserChat(mucAddress);
|
||||||
MultiUserChat mucAsSeenByThree = mucManagerThree.getMultiUserChat(mucAddress);
|
MultiUserChat mucAsSeenByThree = mucManagerThree.getMultiUserChat(mucAddress);
|
||||||
|
|
||||||
createMUC(mucAsSeenByOne, "one-" + randomString);
|
createMuc(mucAsSeenByOne, "one-" + randomString);
|
||||||
final Resourcepart nicknameTwo = Resourcepart.from("two-" + randomString);
|
final Resourcepart nicknameTwo = Resourcepart.from("two-" + randomString);
|
||||||
final Resourcepart nicknameThree = Resourcepart.from("three-" + randomString);
|
final Resourcepart nicknameThree = Resourcepart.from("three-" + randomString);
|
||||||
mucAsSeenByTwo.join(nicknameTwo);
|
mucAsSeenByTwo.join(nicknameTwo);
|
||||||
|
|
Loading…
Reference in a new issue