@Test public void testCreateOAuthService_notNull() throws Exception { OAuth2Service service = AccessTokenAuthenticator.createOAuthService("http: assertNotNull(service); }
static OAuth2Service createOAuthService(String baseUrl) { final Moshi moshi = new Moshi.Builder().add(new OAuthScopesAdapter()).build(); return new Retrofit.Builder() .baseUrl(baseUrl) .addConverterFactory(MoshiConverterFactory.create(moshi)) .build() .create(OAuth2Service.class); }
AccessTokenAuthenticator extends
        BaseRefreshableAuthenticator implements Authenticator { static OAuth2Service createOAuthService(String baseUrl) { final Moshi moshi = new Moshi.Builder().add(new OAuthScopesAdapter()).build(); return new Retrofit.Builder() .baseUrl(baseUrl) .addConverterFactory(MoshiConverterFactory.create(moshi)) .build() .create(OAuth2Service.class); } }
AccessTokenAuthenticator extends
        BaseRefreshableAuthenticator implements Authenticator { static OAuth2Service createOAuthService(String baseUrl) { final Moshi moshi = new Moshi.Builder().add(new OAuthScopesAdapter()).build(); return new Retrofit.Builder() .baseUrl(baseUrl) .addConverterFactory(MoshiConverterFactory.create(moshi)) .build() .create(OAuth2Service.class); } AccessTokenAuthenticator(SessionConfiguration sessionConfiguration,
                                    AccessTokenStorage tokenStorage);   AccessTokenAuthenticator(SessionConfiguration sessionConfiguration,
                             AccessTokenStorage tokenStorage,
                             OAuth2Service auth2Service); }
AccessTokenAuthenticator extends
        BaseRefreshableAuthenticator implements Authenticator { static OAuth2Service createOAuthService(String baseUrl) { final Moshi moshi = new Moshi.Builder().add(new OAuthScopesAdapter()).build(); return new Retrofit.Builder() .baseUrl(baseUrl) .addConverterFactory(MoshiConverterFactory.create(moshi)) .build() .create(OAuth2Service.class); } AccessTokenAuthenticator(SessionConfiguration sessionConfiguration,
                                    AccessTokenStorage tokenStorage);   AccessTokenAuthenticator(SessionConfiguration sessionConfiguration,
                             AccessTokenStorage tokenStorage,
                             OAuth2Service auth2Service); @Override void signRequest(Request.Builder builder); @Override boolean isRefreshable(); @Override SessionConfiguration getSessionConfiguration(); AccessTokenStorage getTokenStorage(); }
AccessTokenAuthenticator extends
        BaseRefreshableAuthenticator implements Authenticator { static OAuth2Service createOAuthService(String baseUrl) { final Moshi moshi = new Moshi.Builder().add(new OAuthScopesAdapter()).build(); return new Retrofit.Builder() .baseUrl(baseUrl) .addConverterFactory(MoshiConverterFactory.create(moshi)) .build() .create(OAuth2Service.class); } AccessTokenAuthenticator(SessionConfiguration sessionConfiguration,
                                    AccessTokenStorage tokenStorage);   AccessTokenAuthenticator(SessionConfiguration sessionConfiguration,
                             AccessTokenStorage tokenStorage,
                             OAuth2Service auth2Service); @Override void signRequest(Request.Builder builder); @Override boolean isRefreshable(); @Override SessionConfiguration getSessionConfiguration(); AccessTokenStorage getTokenStorage();  }