mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-15 03:59:38 +02:00
Remove Pong class, add NAMESPACE to Ping
The Pong class was harmful, as people could try to use it with PacketTypeFilter, which wouldn't work, a Pong is just a plain IQ result without child XML.
This commit is contained in:
parent
bbf89c65bf
commit
76f8895ae3
4 changed files with 20 additions and 59 deletions
|
@ -191,7 +191,7 @@ public class PingTest extends InitExtensions {
|
|||
public void checkSuccessfulDiscoRequest() throws Exception {
|
||||
ThreadedDummyConnection con = new ThreadedDummyConnection();
|
||||
DiscoverInfo info = new DiscoverInfo();
|
||||
info.addFeature(PingManager.NAMESPACE);
|
||||
info.addFeature(Ping.NAMESPACE);
|
||||
|
||||
//@formatter:off
|
||||
String reply =
|
||||
|
@ -213,7 +213,7 @@ public class PingTest extends InitExtensions {
|
|||
public void checkUnuccessfulDiscoRequest() throws Exception {
|
||||
ThreadedDummyConnection con = new ThreadedDummyConnection();
|
||||
DiscoverInfo info = new DiscoverInfo();
|
||||
info.addFeature(PingManager.NAMESPACE);
|
||||
info.addFeature(Ping.NAMESPACE);
|
||||
|
||||
//@formatter:off
|
||||
String reply =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue