mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-23 04:22:05 +01:00
Removes initialization code that was replaced by the automatic system configuration
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2187 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
4f4fff1772
commit
a38e26be3a
1 changed files with 4 additions and 10 deletions
|
@ -79,16 +79,10 @@ public class ServiceDiscoveryManagerTest extends TestCase {
|
|||
* Tests service discovery of XHTML support.
|
||||
*/
|
||||
public void testXHTMLFeature() {
|
||||
// TODO Remove these two lines when the "additional services for extensions" are
|
||||
// implemented
|
||||
new ServiceDiscoveryManager(conn1);
|
||||
new ServiceDiscoveryManager(conn2);
|
||||
|
||||
// Enable the XHTML Message support in connection1
|
||||
XHTMLManager.setServiceEnabled(conn1, true);
|
||||
// Check for local XHTML service support
|
||||
// By default the XHTML service support is enabled in all the connections
|
||||
assertTrue(XHTMLManager.isServiceEnabled(conn1));
|
||||
assertFalse(XHTMLManager.isServiceEnabled(conn2));
|
||||
assertTrue(XHTMLManager.isServiceEnabled(conn2));
|
||||
// Check for XHTML support in connection1 from connection2
|
||||
assertTrue(XHTMLManager.isServiceEnabled(conn2, "gato10@" + conn1.getHost()));
|
||||
|
||||
|
@ -96,7 +90,7 @@ public class ServiceDiscoveryManagerTest extends TestCase {
|
|||
XHTMLManager.setServiceEnabled(conn1, false);
|
||||
// Check for local XHTML service support
|
||||
assertFalse(XHTMLManager.isServiceEnabled(conn1));
|
||||
assertFalse(XHTMLManager.isServiceEnabled(conn2));
|
||||
assertTrue(XHTMLManager.isServiceEnabled(conn2));
|
||||
// Check for XHTML support in connection1 from connection2
|
||||
assertFalse(XHTMLManager.isServiceEnabled(conn2, "gato10@" + conn1.getHost()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue