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