use of com.synopsys.integration.jira.common.cloud.configuration.JiraCloudRestConfig in project hub-alert by blackducksoftware.
the class JiraCloudPropertiesTest method testBuildConfig.
@Test
public void testBuildConfig() {
try {
String url = "http://localhost:2990";
String token = "token";
String user = "user";
boolean pluginCheckDisabled = true;
JiraCloudProperties properties = new JiraCloudProperties(url, token, user, pluginCheckDisabled, ProxyInfo.NO_PROXY_INFO);
assertEquals(url, properties.getUrl());
assertEquals(token, properties.getAccessToken());
assertEquals(user, properties.getUsername());
assertEquals(pluginCheckDisabled, properties.isPluginCheckDisabled());
JiraCloudRestConfig config = properties.createJiraServerConfig();
assertNotNull(config);
} catch (IssueTrackerException ex) {
ex.printStackTrace();
fail();
}
}
use of com.synopsys.integration.jira.common.cloud.configuration.JiraCloudRestConfig in project hub-alert by blackducksoftware.
the class JiraCloudProperties method createJiraServicesCloudFactory.
public JiraCloudServiceFactory createJiraServicesCloudFactory(Logger logger, Gson gson) throws IssueTrackerException {
JiraCloudRestConfig jiraServerConfig = createJiraServerConfig();
Slf4jIntLogger intLogger = new Slf4jIntLogger(logger);
JiraHttpClient jiraHttpClient = jiraServerConfig.createJiraHttpClient(intLogger);
return new JiraCloudServiceFactory(intLogger, jiraHttpClient, gson);
}
Aggregations