Permalink
Browse files

fix some outdated test cases

  • Loading branch information...
1 parent 4fa659c commit 73bf3c02af3ea75b6d1a0afc780841091b1691ee Yusuke Yamamoto committed May 4, 2012
@@ -38,7 +38,7 @@ public void testMonitoringIntegration() throws Exception {
// monitoring is turned on with mbeanEnabled=true
TwitterAPIMonitor monitor = TwitterAPIMonitor.getInstance();
assertEquals(0, monitor.getStatistics().getCallCount());
- twitter.getHomeTimeline();
+ twitter.getDailyTrends();
assertEquals(1, monitor.getStatistics().getCallCount());
}
}
@@ -146,12 +146,12 @@ public void testRetweetMethods() throws Exception {
assertTrue(20 < statuses.size());
List<User> users = unauthenticated.getRetweetedBy(47621163517624320L, new Paging(1, 100));
- assertTrue(users.size() > 90);
+ assertTrue(users.size() > 50);
users = unauthenticated.getRetweetedBy(47621163517624320L, new Paging(2, 100));
assertTrue(users.size() > 10);
IDs ids = twitter1.getRetweetedByIDs(47621163517624320L, new Paging(1, 100));
- assertTrue(ids.getIDs().length > 90);
+ assertTrue(ids.getIDs().length > 50);
ids = twitter1.getRetweetedByIDs(47621163517624320L, new Paging(2, 100));
assertTrue(ids.getIDs().length > 10);
}

0 comments on commit 73bf3c0

Please sign in to comment.