@Test public void testUnlink() { ParseTwitterUtils.isInitialized = true; ParseUser user = mock(ParseUser.class); when(user.unlinkFromInBackground(anyString())).thenReturn(Task.<Void>forResult(null)); Task<Void> task = ParseTwitterUtils.unlinkInBackground(user); verify(user).unlinkFromInBackground("twitter"); verifyNoMoreInteractions(user); assertTrue(task.isCompleted()); }
public static void unlink(ParseUser user) throws ParseException { wait(unlinkInBackground(user)); }
ParseTwitterUtils { public static void unlink(ParseUser user) throws ParseException { wait(unlinkInBackground(user)); } }
ParseTwitterUtils { public static void unlink(ParseUser user) throws ParseException { wait(unlinkInBackground(user)); } private  ParseTwitterUtils(); }
ParseTwitterUtils { public static void unlink(ParseUser user) throws ParseException { wait(unlinkInBackground(user)); } 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 unlink(ParseUser user) throws ParseException { wait(unlinkInBackground(user)); } 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);  }