1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 03:52:06 +01:00

[sinttest] Fix typos in log and exception messages

This commit is contained in:
Guus der Kinderen 2023-09-29 20:21:14 +02:00 committed by Florian Schmaus
parent 6859de95d0
commit 9055878748

View file

@ -287,7 +287,7 @@ public class XmppConnectionManager {
if (unsuccessfullyDeletedAccountsCount == 0) { if (unsuccessfullyDeletedAccountsCount == 0) {
LOGGER.info("Successfully deleted all created accounts ✔"); LOGGER.info("Successfully deleted all created accounts ✔");
} else { } else {
LOGGER.warning("Could not delete all created accounts, " + unsuccessfullyDeletedAccountsCount + " remainaing"); LOGGER.warning("Could not delete all created accounts, " + unsuccessfullyDeletedAccountsCount + " remaining");
} }
} }
@ -366,11 +366,11 @@ public class XmppConnectionManager {
break; break;
case inBandRegistration: case inBandRegistration:
if (!accountManager.supportsAccountCreation()) { if (!accountManager.supportsAccountCreation()) {
throw new UnsupportedOperationException("Account creation/registation is not supported"); throw new UnsupportedOperationException("Account creation/registration is not supported");
} }
Set<String> requiredAttributes = accountManager.getAccountAttributes(); Set<String> requiredAttributes = accountManager.getAccountAttributes();
if (requiredAttributes.size() > 4) { if (requiredAttributes.size() > 4) {
throw new IllegalStateException("Unkown required attributes"); throw new IllegalStateException("Unknown required attributes");
} }
Map<String, String> additionalAttributes = new HashMap<>(); Map<String, String> additionalAttributes = new HashMap<>();
additionalAttributes.put("name", "Smack Integration Test"); additionalAttributes.put("name", "Smack Integration Test");