1
0
mirror of synced 2025-12-23 02:18:07 +08:00

issue #1 添加分组管理接口-查询分组

This commit is contained in:
Daniel Qian
2014-08-25 17:57:06 +08:00
parent f57a0e4c87
commit fb7e739fef
4 changed files with 48 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
package chanjarster.weixin.api;
import java.util.List;
import org.testng.Assert;
import org.testng.annotations.Guice;
import org.testng.annotations.Test;
@@ -21,9 +23,19 @@ public class WxGroupAPITest {
@Inject
protected WxServiceImpl wxService;
public void testCreateMenu() throws WxErrorException {
public void testGroupCreate() throws WxErrorException {
WxGroup res = wxService.groupCreate("测试分组1");
Assert.assertEquals(res.getName(), "测试分组1");
}
@Test(dependsOnMethods="testGroupCreate")
public void testGroupGet() throws WxErrorException {
List<WxGroup> groupList = wxService.groupGet();
Assert.assertNotNull(groupList);
Assert.assertTrue(groupList.size() > 0);
for (WxGroup g : groupList) {
Assert.assertNotNull(g.getName());
}
}
}