|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectTestCase
winterwell.jtwitter.TwitterTest
public class TwitterTest
Unit tests for JTwitter. These only provide partial testing -- sorry.
| Field Summary | |
|---|---|
static java.lang.String |
TEST_PASSWORD
|
| Constructor Summary | |
|---|---|
TwitterTest()
|
|
| Method Summary | |
|---|---|
void |
canSend160()
Check that you can send 160 chars if you wants |
void |
dontTestFollowLag()
Created on a day when Twitter's followers API was being particularly flaky, in order to find out just how bad the lag was. |
static void |
main(java.lang.String[] args)
|
void |
testAagha()
|
void |
testBulkShow()
|
void |
testBulkShowById()
|
void |
testDestroyStatus()
NONDETERMINISTIC! Had to increase sleep time to make it more reliable. |
void |
testDestroyStatusBad()
|
void |
testFollowAndStopFollowing()
Test method for Twitter.follow(java.lang.String). |
void |
testFollowerIDs()
Test method for Twitter.getFollowerIDs()
and Twitter.getFollowerIDs(String). |
void |
testFriendIDs()
Test method for Twitter.getFriendIDs()
and Twitter.getFriendIDs(String). |
void |
testGetDirectMessages()
Test method for Twitter.getDirectMessages(). |
void |
testGetDirectMessagesSent()
Test method for Twitter.getDirectMessagesSent(). |
void |
testGetFeatured()
Test method for Twitter.getFeatured(). |
void |
testGetFollowers()
Test method for Twitter.getFollowers(). |
void |
testGetFriends()
Test method for Twitter.getFriends(). |
void |
testGetFriendsString()
Test method for Twitter.getFriends(java.lang.String). |
void |
testGetFriendsTimeline()
Test method for Twitter.getFriendsTimeline(). |
void |
testGetManyFollowers()
Test the cursor-based API for getting many followers. |
void |
testGetPublicTimeline()
Test method for Twitter.getPublicTimeline(). |
void |
testGetRateLimitStats()
|
void |
testGetReplies()
Test method for Twitter.getReplies(). |
void |
testGetStatus()
Test method for winterwell.jtwitter.Twitter#getStatus(int). |
void |
testGetStatusLong()
Test method for Twitter.getStatus(long). |
void |
testGetUserTimeline()
Test method for Twitter.getUserTimeline(). |
void |
testGetUserTimelineString()
Test method for winterwell.jtwitter.Twitter#getUserTimeline(java.lang.String, java.lang.Integer, java.util.Date). |
void |
testIdentica()
|
void |
testIdenticaAccess()
|
void |
testIsFollower()
Test method for Twitter.isFollower(String)
and Twitter.isFollower(String, String). |
void |
testIsValidLogin()
|
void |
testManyFollowerIDs()
Test the new cursor-based follower/friend methods. |
void |
testMisc()
|
void |
testRetweet()
|
void |
testRetweetsByMe()
|
void |
testSearch()
|
void |
testSearchUsers()
|
void |
testSendMessage()
Test method for Twitter.sendMessage(java.lang.String, java.lang.String). |
void |
testShow()
Test method for Twitter.show(java.lang.String). |
void |
testTooOld()
|
void |
testUpdateStatus()
Test method for Twitter.updateStatus(java.lang.String). |
void |
testUpdateStatusLength()
This crashes out at above 140, which is correct |
void |
testUpdateStatusUnicode()
|
void |
testUserExists()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TEST_PASSWORD
| Constructor Detail |
|---|
public TwitterTest()
| Method Detail |
|---|
public void testRetweetsByMe()
public void testMisc()
public static void main(java.lang.String[] args)
public void testSearchUsers()
public void testBulkShow()
public void testBulkShowById()
public void canSend160()
public void testDestroyStatus()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testDestroyStatusBad()
public void testFollowAndStopFollowing()
throws java.lang.InterruptedException
Twitter.follow(java.lang.String).
java.lang.InterruptedExceptionpublic void testIdenticaAccess()
public void testFollowerIDs()
Twitter.getFollowerIDs()
and Twitter.getFollowerIDs(String).
public void testManyFollowerIDs()
public void testFriendIDs()
Twitter.getFriendIDs()
and Twitter.getFriendIDs(String).
public void testGetDirectMessages()
Twitter.getDirectMessages().
public void testGetDirectMessagesSent()
Twitter.getDirectMessagesSent().
public void testGetFeatured()
Twitter.getFeatured().
public void testGetFollowers()
Twitter.getFollowers().
public void testGetFriends()
Twitter.getFriends().
public void testGetManyFollowers()
public void testGetFriendsString()
Twitter.getFriends(java.lang.String).
public void testGetFriendsTimeline()
Twitter.getFriendsTimeline().
public void testTooOld()
public void testGetPublicTimeline()
Twitter.getPublicTimeline().
public void testGetRateLimitStats()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testGetReplies()
Twitter.getReplies().
public void testAagha()
public void testGetStatus()
winterwell.jtwitter.Twitter#getStatus(int).
public void testGetStatusLong()
Twitter.getStatus(long).
public void testGetUserTimeline()
Twitter.getUserTimeline().
public void testGetUserTimelineString()
winterwell.jtwitter.Twitter#getUserTimeline(java.lang.String, java.lang.Integer, java.util.Date).
public void testIsFollower()
throws java.lang.InterruptedException
Twitter.isFollower(String)
and Twitter.isFollower(String, String).
java.lang.InterruptedExceptionpublic void testRetweet()
public void testSearch()
public void testSendMessage()
Twitter.sendMessage(java.lang.String, java.lang.String).
public void testShow()
Twitter.show(java.lang.String).
public void testUpdateStatus()
Twitter.updateStatus(java.lang.String).
public void testUpdateStatusLength()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testUpdateStatusUnicode()
public void testUserExists()
public void dontTestFollowLag()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException - if the output file can't be opened for writing
java.lang.InterruptedExceptionpublic void testIsValidLogin()
public void testIdentica()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||