1
0
mirror of synced 2025-12-22 09:58:07 +08:00

issue #1 添加分组管理接口-创建分组接口

This commit is contained in:
Daniel Qian
2014-08-25 17:19:27 +08:00
parent 5ddce62556
commit f57a0e4c87
17 changed files with 204 additions and 52 deletions

View File

@@ -0,0 +1,29 @@
package chanjarster.weixin.api;
import org.testng.Assert;
import org.testng.annotations.Guice;
import org.testng.annotations.Test;
import chanjarster.weixin.bean.WxGroup;
import chanjarster.weixin.exception.WxErrorException;
import com.google.inject.Inject;
/**
* 测试分组接口
*
* @author chanjarster
*/
@Test(groups = "groupAPI", dependsOnGroups = "baseAPI")
@Guice(modules = ApiTestModule.class)
public class WxGroupAPITest {
@Inject
protected WxServiceImpl wxService;
public void testCreateMenu() throws WxErrorException {
WxGroup res = wxService.groupCreate("测试分组1");
Assert.assertEquals(res.getName(), "测试分组1");
}
}