mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 17:49:38 +02: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
|
@ -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…
Add table
Add a link
Reference in a new issue