@Test public void testInitialize() { ParseTwitterUtils.initialize("test_key", "test_secret"); assertTrue(ParseTwitterUtils.isInitialized); verify(controller).initialize("test_key", "test_secret"); verify(userDelegate) .registerAuthenticationCallback(eq("twitter"), any(AuthenticationCallback.class)); }
public static void initialize(String consumerKey, String consumerSecret) { initialize(consumerKey, consumerSecret, CALLBACK_URL); }
ParseTwitterUtils { public static void initialize(String consumerKey, String consumerSecret) { initialize(consumerKey, consumerSecret, CALLBACK_URL); } }
ParseTwitterUtils { public static void initialize(String consumerKey, String consumerSecret) { initialize(consumerKey, consumerSecret, CALLBACK_URL); } private  ParseTwitterUtils(); }
ParseTwitterUtils { public static void initialize(String consumerKey, String consumerSecret) { initialize(consumerKey, consumerSecret, CALLBACK_URL); } private  ParseTwitterUtils(); static Twitter getTwitter(); static void initialize(String consumerKey, String consumerSecret); static void initialize(String consumerKey, String consumerSecret, String callbackUrl); static boolean isLinked(ParseUser user); static Task<Void> linkInBackground(Context context, final ParseUser user); @Deprecated static void link(ParseUser user, Context context); static void link(ParseUser user, Context context, SaveCallback callback); static Task<Void> linkInBackground(ParseUser user, String twitterId, String screenName,
                                              String authToken, String authTokenSecret); @Deprecated static void link(ParseUser user, String twitterId, String screenName, String authToken,
                            String authTokenSecret); static void link(ParseUser user, String twitterId, String screenName, String authToken,
                            String authTokenSecret, SaveCallback callback); static Task<ParseUser> logInInBackground(String twitterId, String screenName,
                                                    String authToken, String authTokenSecret); static void logIn(String twitterId, String screenName, String authToken,
                             String authTokenSecret, LogInCallback callback); static Task<ParseUser> logInInBackground(Context context); static void logIn(Context context, LogInCallback callback); static void unlink(ParseUser user); static Task<Void> unlinkInBackground(ParseUser user); static void unlinkInBackground(ParseUser user, SaveCallback callback); }
ParseTwitterUtils { public static void initialize(String consumerKey, String consumerSecret) { initialize(consumerKey, consumerSecret, CALLBACK_URL); } private  ParseTwitterUtils(); static Twitter getTwitter(); static void initialize(String consumerKey, String consumerSecret); static void initialize(String consumerKey, String consumerSecret, String callbackUrl); static boolean isLinked(ParseUser user); static Task<Void> linkInBackground(Context context, final ParseUser user); @Deprecated static void link(ParseUser user, Context context); static void link(ParseUser user, Context context, SaveCallback callback); static Task<Void> linkInBackground(ParseUser user, String twitterId, String screenName,
                                              String authToken, String authTokenSecret); @Deprecated static void link(ParseUser user, String twitterId, String screenName, String authToken,
                            String authTokenSecret); static void link(ParseUser user, String twitterId, String screenName, String authToken,
                            String authTokenSecret, SaveCallback callback); static Task<ParseUser> logInInBackground(String twitterId, String screenName,
                                                    String authToken, String authTokenSecret); static void logIn(String twitterId, String screenName, String authToken,
                             String authTokenSecret, LogInCallback callback); static Task<ParseUser> logInInBackground(Context context); static void logIn(Context context, LogInCallback callback); static void unlink(ParseUser user); static Task<Void> unlinkInBackground(ParseUser user); static void unlinkInBackground(ParseUser user, SaveCallback callback);  }