mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-29 17:48:50 +08:00
测试信息去掉隐私
This commit is contained in:
@ -26,30 +26,30 @@ public class WxCpUserAPITest {
|
|||||||
|
|
||||||
public void testUserCreate() throws WxErrorException {
|
public void testUserCreate() throws WxErrorException {
|
||||||
WxCpUser user = new WxCpUser();
|
WxCpUser user = new WxCpUser();
|
||||||
user.setUserId("xiaohe.yang");
|
user.setUserId("some.woman");
|
||||||
user.setName("杨宝");
|
user.setName("Some Woman");
|
||||||
user.setDepartIds(new Integer[] { 9, 8 });
|
user.setDepartIds(new Integer[] { 9, 8 });
|
||||||
user.setEmail("yangxiaohe@ddd.com");
|
user.setEmail("none@none.com");
|
||||||
user.setGender("女");
|
user.setGender("女");
|
||||||
user.setMobile("13564684979");
|
user.setMobile("13560084979");
|
||||||
user.setPosition("老婆");
|
user.setPosition("woman");
|
||||||
user.setTel("3300393");
|
user.setTel("3300393");
|
||||||
user.addExtAttr("爱好", "老公");
|
user.addExtAttr("爱好", "table");
|
||||||
wxCpService.userCreate(user);
|
wxCpService.userCreate(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(dependsOnMethods = "testUserCreate")
|
@Test(dependsOnMethods = "testUserCreate")
|
||||||
public void testUserUpdate() throws WxErrorException {
|
public void testUserUpdate() throws WxErrorException {
|
||||||
WxCpUser user = new WxCpUser();
|
WxCpUser user = new WxCpUser();
|
||||||
user.setUserId("xiaohe.yang");
|
user.setUserId("some.woman");
|
||||||
user.setName("杨宝");
|
user.setName("Some Woman");
|
||||||
user.addExtAttr("爱好", "老公2");
|
user.addExtAttr("爱好", "table2");
|
||||||
wxCpService.userUpdate(user);
|
wxCpService.userUpdate(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(dependsOnMethods = "testUserUpdate")
|
@Test(dependsOnMethods = "testUserUpdate")
|
||||||
public void testUserGet() throws WxErrorException {
|
public void testUserGet() throws WxErrorException {
|
||||||
WxCpUser user = wxCpService.userGet("xiaohe.yang");
|
WxCpUser user = wxCpService.userGet("some.woman");
|
||||||
Assert.assertNotNull(user);
|
Assert.assertNotNull(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -61,6 +61,6 @@ public class WxCpUserAPITest {
|
|||||||
|
|
||||||
@Test(dependsOnMethods = "testDepartGetUsers")
|
@Test(dependsOnMethods = "testDepartGetUsers")
|
||||||
public void testUserDelete() throws WxErrorException {
|
public void testUserDelete() throws WxErrorException {
|
||||||
wxCpService.userDelete("xiaohe.yang");
|
wxCpService.userDelete("some.woman");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user