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