Package com.dongxuexidu.douban4j.model.subject

Examples of com.dongxuexidu.douban4j.model.subject.DoubanSubjectFeedObj


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


  public void testSearchBook_String_String() throws Exception {
    System.out.println("searchBook");
    String q = "C语言";
    String tag = null;
    DoubanBookMovieMusicService instance = new DoubanBookMovieMusicService();
    DoubanSubjectFeedObj result = instance.searchBook(q, tag);
    assertTrue(result.getSubjects().size() > 0);
  }
View Full Code Here

    String q = "C语言";
    String tag = "C";
    int startIndex = 0;
    int maxResult = 2;
    DoubanBookMovieMusicService instance = new DoubanBookMovieMusicService();
    DoubanSubjectFeedObj result = instance.searchBook(q, tag, startIndex, maxResult);
    assertTrue(result.getSubjects().size() == 2);
  }
View Full Code Here

  public void testSearchMovie_String_String() throws Exception {
    System.out.println("searchMovie");
    String q = "batman";
    String tag = null;
    DoubanBookMovieMusicService instance = new DoubanBookMovieMusicService();
    DoubanSubjectFeedObj result = instance.searchMovie(q, tag);
    assertTrue(result.getSubjects().size() > 0);
  }
View Full Code Here

    String q = "batman";
    String tag = "蝙蝠侠";
    int startIndex = 0;
    int maxResult = 2;
    DoubanBookMovieMusicService instance = new DoubanBookMovieMusicService();
    DoubanSubjectFeedObj result = instance.searchMovie(q, tag, startIndex, maxResult);
    assertTrue(result.getSubjects().size() == 2);
  }
View Full Code Here

  public void testSearchMusic_String_String() throws Exception {
    System.out.println("searchMusic");
    String q = "歌";
    String tag = null;
    DoubanBookMovieMusicService instance = new DoubanBookMovieMusicService();
    DoubanSubjectFeedObj result = instance.searchMusic(q, tag);
    assertTrue(result.getSubjects().size() > 0);
  }
View Full Code Here

    String q = "歌";
    String tag = "歌";
    int startIndex = 0;
    int maxResult = 2;
    DoubanBookMovieMusicService instance = new DoubanBookMovieMusicService();
    DoubanSubjectFeedObj result = instance.searchMusic(q, tag, startIndex, maxResult);
    assertTrue(result.getSubjects().size() == 2);
  }
View Full Code Here

TOP

Related Classes of com.dongxuexidu.douban4j.model.subject.DoubanSubjectFeedObj

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.