use of com.synopsys.integration.alert.common.channel.issuetracker.exception.IssueTrackerException 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.alert.common.channel.issuetracker.exception.IssueTrackerException in project hub-alert by blackducksoftware.
the class JiraCloudPropertiesTest method testServerServiceFactory.
@Test
public void testServerServiceFactory() {
try {
JiraCloudProperties properties = new JiraCloudProperties("http://localhost:2990", "token", "user", false, ProxyInfo.NO_PROXY_INFO);
JiraCloudServiceFactory serviceFactory = properties.createJiraServicesCloudFactory(LoggerFactory.getLogger(getClass()), new Gson());
assertNotNull(serviceFactory);
} catch (IssueTrackerException ex) {
ex.printStackTrace();
fail();
}
}
Aggregations