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
1 changed files with 10 additions and 0 deletions

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();
}
}