mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-27 00:32:07 +01:00
Changes some bare JIDs with full JIDs
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2378 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
81f4029d75
commit
151c904730
2 changed files with 6 additions and 3 deletions
|
@ -80,7 +80,7 @@ public class PacketReaderTest extends SmackTestCase {
|
||||||
return "<query xmlns=\"my:ns:test\"/>";
|
return "<query xmlns=\"my:ns:test\"/>";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
iqPacket.setTo(getBareJID(1));
|
iqPacket.setTo(getFullJID(1));
|
||||||
iqPacket.setType(IQ.Type.GET);
|
iqPacket.setType(IQ.Type.GET);
|
||||||
|
|
||||||
// Send the IQ and wait for the answer
|
// Send the IQ and wait for the answer
|
||||||
|
|
|
@ -111,7 +111,10 @@ public class ServiceDiscoveryManagerTest extends SmackTestCase {
|
||||||
assertTrue(XHTMLManager.isServiceEnabled(getConnection(0)));
|
assertTrue(XHTMLManager.isServiceEnabled(getConnection(0)));
|
||||||
assertTrue(XHTMLManager.isServiceEnabled(getConnection(1)));
|
assertTrue(XHTMLManager.isServiceEnabled(getConnection(1)));
|
||||||
// Check for XHTML support in connection1 from connection2
|
// Check for XHTML support in connection1 from connection2
|
||||||
assertTrue(XHTMLManager.isServiceEnabled(getConnection(1), getBareJID(0)));
|
// Must specify a full JID and not a bare JID. Ensure that the server is working ok.
|
||||||
|
assertFalse(XHTMLManager.isServiceEnabled(getConnection(1), getBareJID(0)));
|
||||||
|
// Using a full JID check that the other client supports XHTML.
|
||||||
|
assertTrue(XHTMLManager.isServiceEnabled(getConnection(1), getFullJID(0)));
|
||||||
|
|
||||||
// Disable the XHTML Message support in connection1
|
// Disable the XHTML Message support in connection1
|
||||||
XHTMLManager.setServiceEnabled(getConnection(0), false);
|
XHTMLManager.setServiceEnabled(getConnection(0), false);
|
||||||
|
|
Loading…
Reference in a new issue