issue #2 设置用户备注名接口
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
29
src/test/java/chanjarster/weixin/api/WxUserAPITest.java
Normal file
29
src/test/java/chanjarster/weixin/api/WxUserAPITest.java
Normal 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(), "测试备注名");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user