1
0
mirror of synced 2025-12-22 00:48:00 +08:00

issue #4 获取关注者列表

This commit is contained in:
Daniel Qian
2014-08-26 13:50:53 +08:00
parent 526648ac9e
commit 634fa92765
6 changed files with 121 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ import org.testng.annotations.Test;
import chanjarster.weixin.api.ApiTestModule.WxXmlConfigStorage;
import chanjarster.weixin.bean.result.WxUser;
import chanjarster.weixin.bean.result.WxUserList;
import chanjarster.weixin.exception.WxErrorException;
import chanjarster.weixin.util.json.WxGsonBuilder;
@@ -35,4 +36,12 @@ public class WxUserAPITest {
System.out.println(WxGsonBuilder.INSTANCE.create().toJson(user));
}
public void testUserList() throws WxErrorException {
WxUserList wxUserList = wxService.userList(null);
Assert.assertNotNull(wxUserList);
Assert.assertFalse(wxUserList.getCount() == -1);
Assert.assertFalse(wxUserList.getTotal() == -1);
Assert.assertFalse(wxUserList.getOpenids().size() == -1);
}
}