Search in sources :

Example 1 with ClaOAuthConfig

use of io.pivotal.cla.config.ClaOAuthConfig in project pivotal-cla by pivotalsoftware.

the class MylynGitHubApiITests method setup.

@Before
public void setup() throws IOException {
    OAuthClientCredentials credentials = new OAuthClientCredentials();
    credentials.setClientId("client-id");
    credentials.setClientSecret("client-secret");
    oauthConfig = new ClaOAuthConfig();
    oauthConfig.setMain(credentials);
    oauthConfig.setScheme("http");
    oauthConfig.setGitHubHost(server.getServer().getHostName());
    oauthConfig.setGitHubApiHost(server.getServer().getHostName());
    oauthConfig.setPort(server.getServer().getPort());
    oauthConfig.setPivotalClaAccessToken("pivotal-cla-accessToken");
    service = new MylynGitHubApi(oauthConfig);
}
Also used : ClaOAuthConfig(io.pivotal.cla.config.ClaOAuthConfig) OAuthClientCredentials(io.pivotal.cla.config.OAuthClientCredentials) Before(org.junit.Before)

Aggregations

ClaOAuthConfig (io.pivotal.cla.config.ClaOAuthConfig)1 OAuthClientCredentials (io.pivotal.cla.config.OAuthClientCredentials)1 Before (org.junit.Before)1