mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-27 14:47:59 +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\"/>";
|
||||
}
|
||||
};
|
||||
iqPacket.setTo(getBareJID(1));
|
||||
iqPacket.setTo(getFullJID(1));
|
||||
iqPacket.setType(IQ.Type.GET);
|
||||
|
||||
// Send the IQ and wait for the answer
|
||||
|
|
|
@ -110,8 +110,11 @@ public class ServiceDiscoveryManagerTest extends SmackTestCase {
|
|||
// By default the XHTML service support is enabled in all the connections
|
||||
assertTrue(XHTMLManager.isServiceEnabled(getConnection(0)));
|
||||
assertTrue(XHTMLManager.isServiceEnabled(getConnection(1)));
|
||||
// Check for XHTML support in connection1 from connection2
|
||||
assertTrue(XHTMLManager.isServiceEnabled(getConnection(1), getBareJID(0)));
|
||||
// Check for XHTML support in connection1 from connection2
|
||||
// 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
|
||||
XHTMLManager.setServiceEnabled(getConnection(0), false);
|
||||
|
|
Loading…
Reference in a new issue