1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-27 00:32:07 +01:00

Fixed test.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@10882 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2008-11-14 00:59:48 +00:00 committed by matt
parent 0540d2e38a
commit ffb8cd914a

View file

@ -76,10 +76,9 @@ public class AdHocCommandDiscoTest extends SmackTestCase {
manager1.registerCommand("test", "test node", LocalCommand.class); manager1.registerCommand("test", "test node", LocalCommand.class);
AdHocCommandManager manager2 = AdHocCommandManager.getAddHocCommandsManager(getConnection(1)); AdHocCommandManager manager2 = AdHocCommandManager.getAddHocCommandsManager(getConnection(1));
DiscoverItems items = manager2.discoverCommands(getBareJID(0)); DiscoverItems items = manager2.discoverCommands(getFullJID(0));
System.out.println(items.toXML()); assertTrue("Disco for command test failed", items.getItems().next().getNode().equals("test"));
//TODO: test that "test" node is in disco items
} }
catch (Exception e) { catch (Exception e) {
fail(e.getMessage()); fail(e.getMessage());