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);
}
Aggregations