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

issue #2 设置用户备注名接口

This commit is contained in:
Daniel Qian
2014-08-26 12:13:28 +08:00
parent 5ea560f6b4
commit e03bb0dfb8
5 changed files with 65 additions and 7 deletions

View File

@@ -58,6 +58,6 @@ public class WxGroupAPITest {
@Test(dependsOnMethods={"testGroupGet", "testGroupCreate"})
public void getGroupMoveUser() throws WxErrorException {
WxXmlConfigStorage configStorage = (WxXmlConfigStorage) wxService.wxConfigStorage;
wxService.groupMoveUser(configStorage.getOpenId(), group.getId());
wxService.userUpdateGroup(configStorage.getOpenId(), group.getId());
}
}

View File

@@ -32,7 +32,7 @@ public class WxMassMessageAPITest {
@Inject
protected WxServiceImpl wxService;
@Test(enabled = false)
@Test
public void testSendMassTextByOpenIds() throws WxErrorException {
// 发送群发消息
WxXmlConfigStorage configProvider = (WxXmlConfigStorage) wxService.wxConfigStorage;
@@ -46,7 +46,7 @@ public class WxMassMessageAPITest {
Assert.assertNotNull(massResult.getMsg_id());
}
@Test(enabled = true, dataProvider="massMessages")
@Test(dataProvider="massMessages")
public void testSendMassByOpenIds(String massMsgType, String mediaId) throws WxErrorException, IOException {
// 发送群发消息
WxXmlConfigStorage configProvider = (WxXmlConfigStorage) wxService.wxConfigStorage;

View File

@@ -0,0 +1,29 @@
package chanjarster.weixin.api;
import org.testng.annotations.Guice;
import org.testng.annotations.Test;
import chanjarster.weixin.api.ApiTestModule.WxXmlConfigStorage;
import chanjarster.weixin.exception.WxErrorException;
import com.google.inject.Inject;
/**
* 测试用户相关的接口
* @author chanjarster
*
*/
@Test(groups = "userAPI", dependsOnGroups = { "baseAPI" })
@Guice(modules = ApiTestModule.class)
public class WxUserAPITest {
@Inject
protected WxServiceImpl wxService;
@Test
public void testUserUpdateRemark() throws WxErrorException {
WxXmlConfigStorage configProvider = (WxXmlConfigStorage) wxService.wxConfigStorage;
wxService.userUpdateRemark(configProvider.getOpenId(), "测试备注名");
}
}