mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-24 03:27:59 +01:00
sinttest: add testDisconnectedNeverConnected for modular connection
This commit is contained in:
parent
e68b89d266
commit
79b9c7b934
1 changed files with 10 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue