File tree Expand file tree Collapse file tree
weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments