Package com.dongxuexidu.douban4j.model.note

Examples of com.dongxuexidu.douban4j.model.note.DoubanNoteFeedObj


      params.add(new BasicNameValuePair("start-index", "" + startIndex));
    }
    if (maxResult != null) {
      params.add(new BasicNameValuePair("max-results", "" + maxResult));
    }
    DoubanNoteFeedObj result = this.client.getResponse(url, params, DoubanNoteFeedObj.class, false);
    return result;
  }
View Full Code Here


    System.out.println("getAllNotesFromUser");
    String userId = "xxx";
    Integer startIndex = 0;
    Integer maxResult = 2;
    DoubanNoteService instance = new DoubanNoteService();
    DoubanNoteFeedObj result = instance.getAllNotesFromUser(userId, startIndex, maxResult);
    assertTrue(result.getEntries().size() <= 2);
  }
View Full Code Here

   */
  public void testGetAllNotesFromUser_String() throws Exception {
    System.out.println("getAllNotesFromUser");
    String userId = "xxxx";
    DoubanNoteService instance = new DoubanNoteService();
    DoubanNoteFeedObj result = instance.getAllNotesFromUser(userId);
    assertTrue(result.getEntries().size() > 0);
    result = instance.getAllNotesFromUser("xxx");
    assertTrue(result.getEntries() == null || result.getEntries().isEmpty());
  }
View Full Code Here

TOP

Related Classes of com.dongxuexidu.douban4j.model.note.DoubanNoteFeedObj

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.