Package org.hamster.weixinmp.dao.entity.user

Examples of org.hamster.weixinmp.dao.entity.user.WxGroupEntity


  @Autowired
  WxUserGroupService userGroupService;
 
  @Test
  public void testAll() throws WxException {
    WxGroupEntity newgroup = userGroupService.remoteGroupsCreate(accessToken, "API测试组");
    List<WxGroupEntity> groups = userGroupService.remoteGroupsGet(accessToken);
   
    boolean found = false;
    for (WxGroupEntity group : groups) {
      if (group.getName().equals(newgroup.getName())) {
        found = true;
      }
    }
    if (found == false) {
      throw new WxException("not found newly created group!");
    }
   
    userGroupService.remoteGroupsUpdate(accessToken, newgroup.getWxId(), "API测试组2");
  }
View Full Code Here

TOP

Related Classes of org.hamster.weixinmp.dao.entity.user.WxGroupEntity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.