@Test public void test_createConnection_data() { ConnectionData data = new ConnectionData("providerId", "providerUserId", "displayName", "profileUrl", "imageUrl", "accesstoken", "secret", "refershToken", 1L); factoryToTest.createConnection(data); Mockito.verify(delegate).createConnection(data); }
public Connection<GitHub> createConnection(AccessGrant accessGrant) { return (Connection<GitHub>) getDelegate().createConnection(accessGrant); }
AdjustableGithubConnectionFactory extends OAuth2ConnectionFactory<GitHub> implements IAdjustableConnectionFactory<GitHub> { public Connection<GitHub> createConnection(AccessGrant accessGrant) { return (Connection<GitHub>) getDelegate().createConnection(accessGrant); } }
AdjustableGithubConnectionFactory extends OAuth2ConnectionFactory<GitHub> implements IAdjustableConnectionFactory<GitHub> { public Connection<GitHub> createConnection(AccessGrant accessGrant) { return (Connection<GitHub>) getDelegate().createConnection(accessGrant); } AdjustableGithubConnectionFactory(String providerId,
            ServiceProvider<GitHub> serviceProvider, ApiAdapter<GitHub> apiAdapter);  AdjustableGithubConnectionFactory(String clientId, String clientSecret); }
AdjustableGithubConnectionFactory extends OAuth2ConnectionFactory<GitHub> implements IAdjustableConnectionFactory<GitHub> { public Connection<GitHub> createConnection(AccessGrant accessGrant) { return (Connection<GitHub>) getDelegate().createConnection(accessGrant); } AdjustableGithubConnectionFactory(String providerId,
            ServiceProvider<GitHub> serviceProvider, ApiAdapter<GitHub> apiAdapter);  AdjustableGithubConnectionFactory(String clientId, String clientSecret); @Override GitHubConnectionFactory getDelegate(); @Override void update(String clientId, String clientSecret); void setScope(String scope); String getScope(); String generateState(); boolean supportsStateParameter(); OAuth2Operations getOAuthOperations(); Connection<GitHub> createConnection(AccessGrant accessGrant); Connection<GitHub> createConnection(ConnectionData data); String getProviderId(); void setProviderUrl(String providerUrl); }
AdjustableGithubConnectionFactory extends OAuth2ConnectionFactory<GitHub> implements IAdjustableConnectionFactory<GitHub> { public Connection<GitHub> createConnection(AccessGrant accessGrant) { return (Connection<GitHub>) getDelegate().createConnection(accessGrant); } AdjustableGithubConnectionFactory(String providerId,
            ServiceProvider<GitHub> serviceProvider, ApiAdapter<GitHub> apiAdapter);  AdjustableGithubConnectionFactory(String clientId, String clientSecret); @Override GitHubConnectionFactory getDelegate(); @Override void update(String clientId, String clientSecret); void setScope(String scope); String getScope(); String generateState(); boolean supportsStateParameter(); OAuth2Operations getOAuthOperations(); Connection<GitHub> createConnection(AccessGrant accessGrant); Connection<GitHub> createConnection(ConnectionData data); String getProviderId(); void setProviderUrl(String providerUrl);  }