mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-25 22:07:56 +01:00
32 lines
792 B
Java
32 lines
792 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 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;
|
||
|
}
|
||
|
}
|