mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-30 02:02:06 +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:
parent
0540d2e38a
commit
ffb8cd914a
1 changed files with 2 additions and 3 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue