コード例 #1
0
  @Test
  public void testBuildCallbackUrl() {
    final String callbackUrl = service.buildCallbackUrl(authConfig);

    assertEquals(
        String.format(
            "twittersdk://callback?version=%s&app=%s",
            twitterCore.getVersion(), authConfig.getConsumerKey()),
        callbackUrl);
  }
コード例 #2
0
 @Test
 public void testGetUserAgent() {
   final String userAgent =
       TwitterApi.buildUserAgent("TwitterAndroidSDK", twitterCore.getVersion());
   assertEquals(userAgent, service.getUserAgent());
 }