Skip to content

Commit 9b0ab05

Browse files
committed
移动两个group相关的测试
1 parent d31c9f7 commit 9b0ab05

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpGroupServiceImplTest.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,15 @@ public void getGroupUpdate() throws WxErrorException {
4747
this.wxService.getGroupService().groupUpdate(this.group);
4848
}
4949

50+
public void testGroupQueryUserGroup() throws WxErrorException {
51+
ApiTestModule.WxXmlMpInMemoryConfigStorage configStorage = (ApiTestModule.WxXmlMpInMemoryConfigStorage) this.wxService.getWxMpConfigStorage();
52+
long groupid = this.wxService.getGroupService().userGetGroup(configStorage.getOpenId());
53+
Assert.assertTrue(groupid != -1l);
54+
}
55+
56+
public void testGroupMoveUser() throws WxErrorException {
57+
ApiTestModule.WxXmlMpInMemoryConfigStorage configStorage = (ApiTestModule.WxXmlMpInMemoryConfigStorage) this.wxService.getWxMpConfigStorage();
58+
this.wxService.getGroupService().userUpdateGroup(configStorage.getOpenId(), this.wxService.getGroupService().groupGet().get(3).getId());
59+
}
60+
5061
}

weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpUserServiceImplTest.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,4 @@ public void testUserList() throws WxErrorException {
4545
System.out.println(wxMpUserList);
4646
}
4747

48-
public void testGroupQueryUserGroup() throws WxErrorException {
49-
ApiTestModule.WxXmlMpInMemoryConfigStorage configStorage = (ApiTestModule.WxXmlMpInMemoryConfigStorage) this.wxService.getWxMpConfigStorage();
50-
long groupid = this.wxService.getGroupService().userGetGroup(configStorage.getOpenId());
51-
Assert.assertTrue(groupid != -1l);
52-
}
53-
54-
public void testGroupMoveUser() throws WxErrorException {
55-
ApiTestModule.WxXmlMpInMemoryConfigStorage configStorage = (ApiTestModule.WxXmlMpInMemoryConfigStorage) this.wxService.getWxMpConfigStorage();
56-
this.wxService.getGroupService().userUpdateGroup(configStorage.getOpenId(), this.wxService.getGroupService().groupGet().get(3).getId());
57-
}
58-
5948
}

0 commit comments

Comments
 (0)