use of org.igniterealtime.smack.inttest.annotations.SmackIntegrationTest in project Smack by igniterealtime.
the class WaitForClosingStreamElementTest method waitForClosingStreamElementTest.
@SmackIntegrationTest
public void waitForClosingStreamElementTest(AbstractXMPPConnection connection) throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException {
connection.disconnect();
Field closingStreamReceivedField = AbstractXMPPConnection.class.getDeclaredField("closingStreamReceived");
closingStreamReceivedField.setAccessible(true);
boolean closingStreamReceived = (boolean) closingStreamReceivedField.get(connection);
assertTrue(closingStreamReceived);
}
Aggregations