Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Commit

Permalink
fixing searchapi test cases
Browse files Browse the repository at this point in the history
git-svn-id: http://yusuke.homeip.net/svn/twitter4j/trunk@312 117b7e0d-5933-0410-9d29-ab41bb01d86b
  • Loading branch information
yusuke committed May 25, 2009
1 parent c27522f commit d034202
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/test/java/twitter4j/SearchAPITest.java
Expand Up @@ -140,22 +140,18 @@ public void testTrends() throws Exception{

trendsList = unauthenticated.getDailyTrends();
assertTrue(100000 > (trends.getAsOf().getTime() - System.currentTimeMillis()));
assertTrue(20 < trendsList.size());
assertTrends(trendsList,20);

trendsList = unauthenticated.getDailyTrends(new Date(), true);
assertTrue(100000 > (trends.getAsOf().getTime() - System.currentTimeMillis()));
assertTrue(0 <= trendsList.size());
assertTrends(trendsList,20);

trendsList = unauthenticated.getWeeklyTrends();
assertTrue(100000 > (trends.getAsOf().getTime() - System.currentTimeMillis()));
assertEquals(7, trendsList.size());
assertTrends(trendsList,30);

trendsList = unauthenticated.getWeeklyTrends(new Date(), true);
assertTrue(100000 > (trends.getAsOf().getTime() - System.currentTimeMillis()));
assertTrue(1 <= trendsList.size());
assertTrends(trendsList,30);
}
private void assertTrends(List<Trends> trendsArray, int expectedSize) throws Exception{
Expand Down

0 comments on commit d034202

Please sign in to comment.