示例#1
0
 @Test
 public void testGetFollower() {
   log.info("====== UserAPI#getFollower ====== ");
   Follower f = ua.getFollower(openId, null);
   assertNotNull(f);
   log.info(f);
 }
示例#2
0
 @Test
 public void testUpdateRemark() {
   log.info("====== UserAPI#updateRemark ====== ");
   boolean flag = ua.updateRemark(openId, "Youself");
   assertTrue(flag);
   log.info(flag);
 }
示例#3
0
 @Test
 public void testGetFollowerList() {
   log.info("====== UserAPI#getFollowerList ====== ");
   FollowList fl = ua.getFollowerList(null);
   assertNotNull(fl);
   log.info(fl);
 }
示例#4
0
  @Test
  public void testGetFollowers() {
    log.info("====== UserAPI#getFollowers ====== ");
    List<Follower2> getfs = new ArrayList<Follower2>();
    getfs.add(new Follower2(openId));
    getfs.add(new Follower2(_cr.get("openId2")));

    List<Follower> fs = ua.getFollowers(getfs);
    assertNotNull(fs);
    assertEquals(2, fs.size());
    log.info(fs);
  }