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

Cleanup FileTransferNegotiatorTest

This commit is contained in:
Florian Schmaus 2016-08-26 10:58:00 +02:00
parent 0a96016727
commit e17ba85c2f

View file

@ -33,9 +33,6 @@ public class FileTransferNegotiatorTest extends InitExtensions {
@Before
public void setUp() throws Exception {
// Uncomment this to enable debug output
// SmackConfiguration.DEBUG = true;
connection = new DummyConnection();
connection.connect();
connection.login();
@ -54,7 +51,7 @@ public class FileTransferNegotiatorTest extends InitExtensions {
try {
fileNeg.negotiateOutgoingTransfer(JidTestUtil.DUMMY_AT_EXAMPLE_ORG, "streamid", "file", 1024, null, 10);
} catch (NoResponseException e) {
// Ignore
// We do not expect an answer. This unit test only checks the request sent.
}
Stanza packet = connection.getSentPacket();
String xml = packet.toXML().toString();