1
0
mirror of synced 2025-12-22 00:48:00 +08:00

issue #1 添加分组管理接口-修改分组名

This commit is contained in:
Daniel Qian
2014-08-25 19:52:24 +08:00
parent 74f0b44be6
commit 521c72ca57
4 changed files with 32 additions and 5 deletions

View File

@@ -35,14 +35,21 @@ public class WxGroupAPITest {
Assert.assertNotNull(groupList);
Assert.assertTrue(groupList.size() > 0);
for (WxGroup g : groupList) {
System.out.println(g.toString());
Assert.assertNotNull(g.getName());
}
}
@Test(dependsOnMethods="testGroupCreate")
public void groupQueryUserGroup() throws WxErrorException {
public void testGroupQueryUserGroup() throws WxErrorException {
WxXmlConfigStorage configStorage = (WxXmlConfigStorage) wxService.wxConfigStorage;
long groupid = wxService.groupQueryUserGroup(configStorage.getOpenId());
}
public void getGroupUpdate() throws WxErrorException {
WxGroup group = new WxGroup();
group.setId(3);
group.setName("未命名分组");
wxService.groupUpdate(group);
}
}