mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-19 10:32:05 +01:00
e08c8afe44
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@13325 b35dd754-fafc-0310-a699-88a17e54d16e
31 lines
794 B
Java
31 lines
794 B
Java
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 Wildfire.
|
|
*
|
|
* @author Gaston Dombiak
|
|
*/
|
|
public class SharedGroupsTest extends SmackTestCase {
|
|
|
|
public SharedGroupsTest(String arg0) {
|
|
super(arg0);
|
|
}
|
|
|
|
public void testGetUserSharedGroups() throws XMPPException {
|
|
List<String> groups = SharedGroupManager.getSharedGroups(getConnection(0));
|
|
|
|
assertNotNull("User groups was null", groups);
|
|
}
|
|
|
|
protected int getMaxConnections() {
|
|
return 1;
|
|
}
|
|
}
|