From ffb8cd914ab341e8679a5e4078b4fe466fcbe3af Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Fri, 14 Nov 2008 00:59:48 +0000 Subject: [PATCH] Fixed test. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@10882 b35dd754-fafc-0310-a699-88a17e54d16e --- .../jivesoftware/smackx/commands/AdHocCommandDiscoTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/org/jivesoftware/smackx/commands/AdHocCommandDiscoTest.java b/test/org/jivesoftware/smackx/commands/AdHocCommandDiscoTest.java index 3ead9510c..e07ba483d 100644 --- a/test/org/jivesoftware/smackx/commands/AdHocCommandDiscoTest.java +++ b/test/org/jivesoftware/smackx/commands/AdHocCommandDiscoTest.java @@ -76,10 +76,9 @@ public class AdHocCommandDiscoTest extends SmackTestCase { manager1.registerCommand("test", "test node", LocalCommand.class); AdHocCommandManager manager2 = AdHocCommandManager.getAddHocCommandsManager(getConnection(1)); - DiscoverItems items = manager2.discoverCommands(getBareJID(0)); + DiscoverItems items = manager2.discoverCommands(getFullJID(0)); - System.out.println(items.toXML()); - //TODO: test that "test" node is in disco items + assertTrue("Disco for command test failed", items.getItems().next().getNode().equals("test")); } catch (Exception e) { fail(e.getMessage());