1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-26 08:12:05 +01:00

Use XMPPConnection.toString() in SmackIntegrationTestFramework

This commit is contained in:
Florian Schmaus 2015-04-22 22:31:58 +02:00
parent 17103def0b
commit 0efdc4018f

View file

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