1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 12:02:05 +01:00

sinttest: add testDisconnectedNeverConnected for modular connection

This commit is contained in:
Florian Schmaus 2020-04-09 21:09:42 +02:00
parent e68b89d266
commit 79b9c7b934

View file

@ -21,7 +21,10 @@ import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import org.jivesoftware.smack.SmackException;
import org.jivesoftware.smack.SmackException.NoResponseException;
import org.jivesoftware.smack.SmackException.NotConnectedException;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.XMPPException.XMPPErrorException;
import org.igniterealtime.smack.inttest.AbstractSmackSpecificLowLevelIntegrationTest;
import org.igniterealtime.smack.inttest.SmackIntegrationTest;
@ -43,4 +46,11 @@ public class ModularXmppClientToServerConnectionLowLevelIntegrationTest extends
connection.disconnect();
}
@SmackIntegrationTest
public void testDisconnectNeverConnected()
throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
ModularXmppClientToServerConnection connection = getSpecificUnconnectedConnection();
connection.disconnect();
}
}