@Test public void test_createConnection() { AccessGrant grant = new AccessGrant("token"); factoryToTest.createConnection(grant); Mockito.verify(delegate).createConnection(grant); }
public Connection<Google> createConnection(AccessGrant accessGrant) { return (Connection<Google>) getDelegate().createConnection(accessGrant); }
AdjustableGoogleConnectionFactory extends OAuth2ConnectionFactory<Google> implements IAdjustableConnectionFactory<Google> { public Connection<Google> createConnection(AccessGrant accessGrant) { return (Connection<Google>) getDelegate().createConnection(accessGrant); } }
AdjustableGoogleConnectionFactory extends OAuth2ConnectionFactory<Google> implements IAdjustableConnectionFactory<Google> { public Connection<Google> createConnection(AccessGrant accessGrant) { return (Connection<Google>) getDelegate().createConnection(accessGrant); } AdjustableGoogleConnectionFactory(String providerId,
            ServiceProvider<Google> serviceProvider, ApiAdapter<Google> apiAdapter);  AdjustableGoogleConnectionFactory(String clientId, String clientSecret); }
AdjustableGoogleConnectionFactory extends OAuth2ConnectionFactory<Google> implements IAdjustableConnectionFactory<Google> { public Connection<Google> createConnection(AccessGrant accessGrant) { return (Connection<Google>) getDelegate().createConnection(accessGrant); } AdjustableGoogleConnectionFactory(String providerId,
            ServiceProvider<Google> serviceProvider, ApiAdapter<Google> apiAdapter);  AdjustableGoogleConnectionFactory(String clientId, String clientSecret); @Override GoogleConnectionFactory getDelegate(); @Override void update(String clientId, String clientSecret); void setScope(String scope); String getScope(); String generateState(); boolean supportsStateParameter(); OAuth2Operations getOAuthOperations(); Connection<Google> createConnection(AccessGrant accessGrant); Connection<Google> createConnection(ConnectionData data); String getProviderId(); void setProviderUrl(String providerUrl); }
AdjustableGoogleConnectionFactory extends OAuth2ConnectionFactory<Google> implements IAdjustableConnectionFactory<Google> { public Connection<Google> createConnection(AccessGrant accessGrant) { return (Connection<Google>) getDelegate().createConnection(accessGrant); } AdjustableGoogleConnectionFactory(String providerId,
            ServiceProvider<Google> serviceProvider, ApiAdapter<Google> apiAdapter);  AdjustableGoogleConnectionFactory(String clientId, String clientSecret); @Override GoogleConnectionFactory getDelegate(); @Override void update(String clientId, String clientSecret); void setScope(String scope); String getScope(); String generateState(); boolean supportsStateParameter(); OAuth2Operations getOAuthOperations(); Connection<Google> createConnection(AccessGrant accessGrant); Connection<Google> createConnection(ConnectionData data); String getProviderId(); void setProviderUrl(String providerUrl);  }