mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 22:32:06 +01:00
Use XMPPConnection.toString() in SmackIntegrationTestFramework
This commit is contained in:
parent
17103def0b
commit
0efdc4018f
1 changed files with 4 additions and 5 deletions
|
@ -453,12 +453,11 @@ public class SmackIntegrationTestFramework {
|
||||||
for (int i = 0; i < numberOfConnections; ++i) {
|
for (int i = 0; i < numberOfConnections; ++i) {
|
||||||
try {
|
try {
|
||||||
AccountManager.getInstance(connections[i]).deleteAccount();
|
AccountManager.getInstance(connections[i]).deleteAccount();
|
||||||
LOGGER.info("Successfully deleted account for connection ("
|
LOGGER.info("Successfully deleted account of" + connections[i]);
|
||||||
+ connections[i] + ')');
|
|
||||||
}
|
}
|
||||||
catch (NoResponseException | XMPPErrorException | NotConnectedException
|
catch (NoResponseException | XMPPErrorException | NotConnectedException
|
||||||
| InterruptedException e) {
|
| InterruptedException e) {
|
||||||
LOGGER.log(Level.SEVERE, "Could not delete account", e);
|
LOGGER.log(Level.SEVERE, "Could not delete account of " + connections[i], e);
|
||||||
}
|
}
|
||||||
connections[i].disconnect();
|
connections[i].disconnect();
|
||||||
}
|
}
|
||||||
|
@ -475,10 +474,10 @@ public class SmackIntegrationTestFramework {
|
||||||
try {
|
try {
|
||||||
am.deleteAccount();
|
am.deleteAccount();
|
||||||
} catch (NoResponseException | InterruptedException e) {
|
} catch (NoResponseException | InterruptedException e) {
|
||||||
LOGGER.log(Level.WARNING, "Exception deleting account" , e);
|
LOGGER.log(Level.WARNING, "Exception deleting account for " + connection , e);
|
||||||
continue;
|
continue;
|
||||||
} catch (NotConnectedException e) {
|
} catch (NotConnectedException e) {
|
||||||
LOGGER.log(Level.WARNING, "Exception deleting account" , e);
|
LOGGER.log(Level.WARNING, "Exception deleting account for " + connection , e);
|
||||||
connection.connect().login();
|
connection.connect().login();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue