Permalink
Browse files

workaround for list api unstableness

  • Loading branch information...
1 parent cdf412c commit 83a506320c7501fc51a5f7e38b5289687cc171b3 @yusuke committed Jul 19, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 twitter4j-core/src/test/java/twitter4j/ListMethodsTest.java
@@ -96,7 +96,6 @@ public void testListMethods() throws Exception {
assertTrue(userList.isPublic());
assertNotNull(DataObjectFactory.getRawJSON(userList));
assertNotNull(userList);
- System.out.println(userList);
assertEquals("testpoint3", userList.getName());
assertEquals("description3", userList.getDescription());
}
@@ -173,7 +172,7 @@ public void testListSubscribersMethods() throws Exception {
/*List Subscribers Methods*/
PagableResponseList<User> users;
- users = twitter1.getUserListSubscribers(userList.getId(), -1);
+ users = twitter1.getUserListSubscribers(twitter1.getId(), userList.getSlug(), -1);
assertNotNull(DataObjectFactory.getRawJSON(users));
assertEquals(0, users.size());
try {
@@ -237,7 +236,6 @@ private UserList prepareListTest() throws Exception {
userLists = twitter1.getUserLists(id1.screenName, -1l);
assertNotNull(DataObjectFactory.getRawJSON(userLists));
for (UserList alist : userLists) {
- System.out.println(alist);
twitter1.destroyUserList(twitter1.getId(), alist.getSlug());
}
return twitter1.createUserList("testpoint1", false, "description1");

0 comments on commit 83a5063

Please sign in to comment.