1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 22:12:05 +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:
Gaston Dombiak 2004-09-10 21:39:56 +00:00 committed by gdombiak
parent 81f4029d75
commit 151c904730
2 changed files with 6 additions and 3 deletions

View file

@ -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

View file

@ -111,7 +111,10 @@ public class ServiceDiscoveryManagerTest extends SmackTestCase {
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)));
// 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);