mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-31 10:38:42 +08:00 
			
		
		
		
	移动两个group相关的测试
This commit is contained in:
		| @ -47,4 +47,15 @@ public class WxMpGroupServiceImplTest { | |||||||
|     this.wxService.getGroupService().groupUpdate(this.group); |     this.wxService.getGroupService().groupUpdate(this.group); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  |   public void testGroupQueryUserGroup() throws WxErrorException { | ||||||
|  |     ApiTestModule.WxXmlMpInMemoryConfigStorage configStorage = (ApiTestModule.WxXmlMpInMemoryConfigStorage) this.wxService.getWxMpConfigStorage(); | ||||||
|  |     long groupid = this.wxService.getGroupService().userGetGroup(configStorage.getOpenId()); | ||||||
|  |     Assert.assertTrue(groupid != -1l); | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   public void testGroupMoveUser() throws WxErrorException { | ||||||
|  |     ApiTestModule.WxXmlMpInMemoryConfigStorage configStorage = (ApiTestModule.WxXmlMpInMemoryConfigStorage) this.wxService.getWxMpConfigStorage(); | ||||||
|  |     this.wxService.getGroupService().userUpdateGroup(configStorage.getOpenId(), this.wxService.getGroupService().groupGet().get(3).getId()); | ||||||
|  |   } | ||||||
|  |  | ||||||
| } | } | ||||||
|  | |||||||
| @ -45,15 +45,4 @@ public class WxMpUserServiceImplTest { | |||||||
|     System.out.println(wxMpUserList); |     System.out.println(wxMpUserList); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   public void testGroupQueryUserGroup() throws WxErrorException { |  | ||||||
|     ApiTestModule.WxXmlMpInMemoryConfigStorage configStorage = (ApiTestModule.WxXmlMpInMemoryConfigStorage) this.wxService.getWxMpConfigStorage(); |  | ||||||
|     long groupid = this.wxService.getGroupService().userGetGroup(configStorage.getOpenId()); |  | ||||||
|     Assert.assertTrue(groupid != -1l); |  | ||||||
|   } |  | ||||||
|  |  | ||||||
|   public void testGroupMoveUser() throws WxErrorException { |  | ||||||
|     ApiTestModule.WxXmlMpInMemoryConfigStorage configStorage = (ApiTestModule.WxXmlMpInMemoryConfigStorage) this.wxService.getWxMpConfigStorage(); |  | ||||||
|     this.wxService.getGroupService().userUpdateGroup(configStorage.getOpenId(), this.wxService.getGroupService().groupGet().get(3).getId()); |  | ||||||
|   } |  | ||||||
|  |  | ||||||
| } | } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 BinaryWang
					BinaryWang