Package com.restfb.types.Post

Examples of com.restfb.types.Post.Comments


  public void check_2_1_comments_likes_count() {
    Connection<Post> con =
        new Connection<Post>(new DefaultFacebookClient(), jsonFromClasspath("v2_1/feed-got"), Post.class);
    List<Post> postPage = con.getData();
    for (Post post : postPage) {
      Comments cs = post.getComments();
      if (null != cs && !cs.getData().isEmpty()) {
        Assert.assertTrue(cs.getTotalCount() > 0);
      }
      Likes ls = post.getLikes();
      if (null != ls && !ls.getData().isEmpty()) {
        Assert.assertTrue(ls.getCount() > 0);
      }
View Full Code Here

TOP

Related Classes of com.restfb.types.Post.Comments

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.