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