Search in sources :

Example 1 with NullAuthorization

use of twitter4j.auth.NullAuthorization in project twitter4j by yusuke.

the class AuthorizationTest method testAnonymousInstance.

public void testAnonymousInstance() throws Exception {
    Twitter twitter = new TwitterFactory().getInstance();
    Authorization auth = twitter.getAuthorization();
    assertTrue(auth instanceof NullAuthorization);
}
Also used : Authorization(twitter4j.auth.Authorization) OAuth2Authorization(twitter4j.auth.OAuth2Authorization) OAuthAuthorization(twitter4j.auth.OAuthAuthorization) NullAuthorization(twitter4j.auth.NullAuthorization) NullAuthorization(twitter4j.auth.NullAuthorization)

Aggregations

Authorization (twitter4j.auth.Authorization)1 NullAuthorization (twitter4j.auth.NullAuthorization)1 OAuth2Authorization (twitter4j.auth.OAuth2Authorization)1 OAuthAuthorization (twitter4j.auth.OAuthAuthorization)1