File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -47,4 +47,15 @@ public void getGroupUpdate() throws WxErrorException {
47
47
this .wxService .getGroupService ().groupUpdate (this .group );
48
48
}
49
49
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
+
50
61
}
Original file line number Diff line number Diff line change @@ -45,15 +45,4 @@ public void testUserList() throws WxErrorException {
45
45
System .out .println (wxMpUserList );
46
46
}
47
47
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
-
59
48
}
You can’t perform that action at this time.
0 commit comments