2005-10-19 02:46:57 +02:00
|
|
|
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
|
2005-12-13 23:43:24 +01:00
|
|
|
* with Wildfire.
|
2005-10-19 02:46:57 +02:00
|
|
|
*
|
|
|
|
* @author Gaston Dombiak
|
|
|
|
*/
|
|
|
|
public class SharedGroupsTest extends SmackTestCase {
|
|
|
|
|
|
|
|
public SharedGroupsTest(String arg0) {
|
|
|
|
super(arg0);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void testGetUserSharedGroups() throws XMPPException {
|
2012-10-26 12:47:55 +02:00
|
|
|
List<String> groups = SharedGroupManager.getSharedGroups(getConnection(0));
|
2005-10-19 02:46:57 +02:00
|
|
|
|
|
|
|
assertNotNull("User groups was null", groups);
|
|
|
|
}
|
|
|
|
|
|
|
|
protected int getMaxConnections() {
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|