1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-23 04:57:58 +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:
Gaston Dombiak 2003-12-19 18:22:42 +00:00 committed by gdombiak
parent 4f4fff1772
commit a38e26be3a

View file

@ -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
// 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()));
}