@@ -150,33 +150,34 @@ public void testFavorite() throws Exception {
150
150
}
151
151
}
152
152
153
- public void testSocialGraphMethods () throws Exception {
154
- async1 .getFriendsIDs (-1 );
155
- waitForResponse ();
156
- int yusuke = 4933401 ;
157
- assertIDExsits ("twit4j is following yusuke" , ids , yusuke );
158
- int ryunosukey = 48528137 ;
159
- async1 .getFriendsIDs (ryunosukey , -1 );
160
- waitForResponse ();
161
- assertEquals ("ryunosukey is not following anyone" , 0 , ids .getIDs ().length );
162
- async1 .getFriendsIDs ("yusuke" , -1 );
163
- waitForResponse ();
164
- assertIDExsits ("yusukey is following ryunosukey" , ids , ryunosukey );
165
-
166
- try {
167
- twitter2 .createFriendship (id1 .screenName );
168
- } catch (TwitterException te ) {
169
- }
170
- async1 .getFollowersIDs (-1 );
171
- waitForResponse ();
172
- assertIDExsits ("twit4j2(6377362) is following twit4j(6358482)" , ids , 6377362 );
173
- async1 .getFollowersIDs (ryunosukey , -1 );
174
- waitForResponse ();
175
- assertIDExsits ("yusukey is following ryunosukey" , ids , yusuke );
176
- async1 .getFollowersIDs ("ryunosukey" , -1 );
177
- waitForResponse ();
178
- assertIDExsits ("yusukey is following ryunosukey" , ids , yusuke );
179
- }
153
+ // disable test case for now due to the rate limitation
154
+ // public void testSocialGraphMethods() throws Exception {
155
+ // async1.getFriendsIDs(-1);
156
+ // waitForResponse();
157
+ // int yusuke = 4933401;
158
+ // assertIDExsits("twit4j is following yusuke", ids, yusuke);
159
+ // int ryunosukey = 48528137;
160
+ // async1.getFriendsIDs(ryunosukey, -1);
161
+ // waitForResponse();
162
+ // assertEquals("ryunosukey is not following anyone", 0, ids.getIDs().length);
163
+ // async1.getFriendsIDs("yusuke", -1);
164
+ // waitForResponse();
165
+ // assertIDExsits("yusukey is following ryunosukey", ids, ryunosukey);
166
+ //
167
+ // try {
168
+ // twitter2.createFriendship(id1.screenName);
169
+ // } catch (TwitterException te) {
170
+ // }
171
+ // async1.getFollowersIDs(-1);
172
+ // waitForResponse();
173
+ // assertIDExsits("twit4j2(6377362) is following twit4j(6358482)", ids, 6377362);
174
+ // async1.getFollowersIDs(ryunosukey, -1);
175
+ // waitForResponse();
176
+ // assertIDExsits("yusukey is following ryunosukey", ids, yusuke);
177
+ // async1.getFollowersIDs("ryunosukey", -1);
178
+ // waitForResponse();
179
+ // assertIDExsits("yusukey is following ryunosukey", ids, yusuke);
180
+ // }
180
181
181
182
private void assertIDExsits (String assertion , IDs ids , int idToFind ) {
182
183
boolean found = false ;
0 commit comments