1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-26 08:12:05 +01:00

Remove unused DiscoverInfo instances in PingTest

This commit is contained in:
Florian Schmaus 2019-10-27 07:51:25 +01:00
parent e2d206e741
commit 4b01892129

View file

@ -1,6 +1,6 @@
/** /**
* *
* Copyright 2012-2014 Florian Schmaus * Copyright 2012-2019 Florian Schmaus
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -36,7 +36,6 @@ import org.jivesoftware.smack.packet.Stanza;
import org.jivesoftware.smack.util.PacketParserUtils; import org.jivesoftware.smack.util.PacketParserUtils;
import org.jivesoftware.smackx.InitExtensions; import org.jivesoftware.smackx.InitExtensions;
import org.jivesoftware.smackx.disco.packet.DiscoverInfo;
import org.jivesoftware.smackx.ping.packet.Ping; import org.jivesoftware.smackx.ping.packet.Ping;
import org.junit.Test; import org.junit.Test;
@ -191,8 +190,6 @@ public class PingTest extends InitExtensions {
@Test @Test
public void checkSuccessfulDiscoRequest() throws Exception { public void checkSuccessfulDiscoRequest() throws Exception {
ThreadedDummyConnection con = getAuthenticatedDummyConnection(); ThreadedDummyConnection con = getAuthenticatedDummyConnection();
DiscoverInfo info = new DiscoverInfo();
info.addFeature(Ping.NAMESPACE);
// @formatter:off // @formatter:off
String reply = String reply =
@ -213,8 +210,6 @@ public class PingTest extends InitExtensions {
@Test @Test
public void checkUnsuccessfulDiscoRequest() throws Exception { public void checkUnsuccessfulDiscoRequest() throws Exception {
ThreadedDummyConnection con = getAuthenticatedDummyConnection(); ThreadedDummyConnection con = getAuthenticatedDummyConnection();
DiscoverInfo info = new DiscoverInfo();
info.addFeature(Ping.NAMESPACE);
// @formatter:off // @formatter:off
String reply = String reply =