1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-10 17:49:38 +02:00

Initial version. SMACK-96

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2983 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2005-10-19 00:46:57 +00:00 committed by gato
parent 23eefa7dc9
commit 04fbaff6fd
3 changed files with 157 additions and 0 deletions

View file

@ -0,0 +1,31 @@
package org.jivesoftware.smackx;
import org.jivesoftware.smack.test.SmackTestCase;
import org.jivesoftware.smack.XMPPException;
import java.util.List;
/**
* Test cases for getting the shared groups of a user.<p>
*
* Important note: This functionality is not part of the XMPP spec and it will only work
* with Jive Messenger.
*
* @author Gaston Dombiak
*/
public class SharedGroupsTest extends SmackTestCase {
public SharedGroupsTest(String arg0) {
super(arg0);
}
public void testGetUserSharedGroups() throws XMPPException {
List groups = SharedGroupManager.getSharedGroups(getConnection(0));
assertNotNull("User groups was null", groups);
}
protected int getMaxConnections() {
return 1;
}
}