Skip to content

Commit

Permalink
fix some outdated test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusuke Yamamoto committed May 4, 2012
1 parent 4fa659c commit 73bf3c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -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());
}
}
4 changes: 2 additions & 2 deletions twitter4j-core/src/test/java/twitter4j/StatusMethodsTest.java
Expand Up @@ -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);
}
Expand Down

0 comments on commit 73bf3c0

Please sign in to comment.