mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-23 13:07:59 +01:00
Remove testbed.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2840 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
61590449b7
commit
64ac585dec
1 changed files with 0 additions and 37 deletions
|
@ -1,37 +0,0 @@
|
|||
/**
|
||||
* $RCSfile: ,v $
|
||||
* $Revision: 1.0 $
|
||||
* $Date: 2005/05/25 04:20:03 $
|
||||
*
|
||||
* Copyright (C) 1999-2005 Jive Software. All rights reserved.
|
||||
*
|
||||
* This software is the proprietary information of Jive Software. Use is
|
||||
subject to license terms.
|
||||
*/
|
||||
|
||||
package org.jivesoftware.smackx.search;
|
||||
|
||||
import org.jivesoftware.smack.XMPPConnection;
|
||||
import org.jivesoftware.smackx.Form;
|
||||
import org.jivesoftware.smackx.ReportedData;
|
||||
|
||||
public class Test {
|
||||
|
||||
public static void main(String args[]) throws Exception {
|
||||
XMPPConnection.DEBUG_ENABLED = true;
|
||||
XMPPConnection con = new XMPPConnection("jabber.org");
|
||||
con.login("ddman", "whocares");
|
||||
|
||||
UserSearchManager search = new UserSearchManager(con, "users.jabber.org");
|
||||
Form searchForm = search.getSearchForm();
|
||||
|
||||
Form answerForm = searchForm.createAnswerForm();
|
||||
answerForm.setAnswer("last", "Lynch");
|
||||
|
||||
ReportedData data = search.getSearchResults(answerForm);
|
||||
|
||||
|
||||
System.out.println(data);
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue