TypeFactory.defaultInstance().constructCollectionType(List.class, ConnectionResponseDTO.class));
assertEquals(25, allConnections.size()); // The 21 RSS feed connections, 1 AWS, 1 GitHub and 1 Jira
cloud = createConnection(authnToken, "AWS Cloud Connection", "This is a test cloud connection to AWS.",
new ConnectionCredentials(cloudProperties.getString("nodeable.aws.accessKeyId"),
cloudProperties.getString("nodeable.aws.secretKey")),
ProviderIdConstants.AWS_PROVIDER_ID, null, ConnectionTypeConstants.CLOUD_TYPE, AuthType.USERNAME_PASSWORD);
allConnections = jsonToObject(makeRequest(connectionsBaseUrl, "GET", null, authnToken),
TypeFactory.defaultInstance().constructCollectionType(List.class, ConnectionResponseDTO.class));
assertEquals(26, allConnections.size());
jira = createConnection(authnToken, "Jira Connection", "This is a test project hosting connection to Jira.",
new ConnectionCredentials(jiraProperties.getString("nodeable.jira.username"),
jiraProperties.getString("nodeable.jira.password")),
ProviderIdConstants.JIRA_PROVIDER_ID, jiraProperties.getString("nodeable.jira.url"),
ConnectionTypeConstants.PROJECT_HOSTING_TYPE, AuthType.USERNAME_PASSWORD);
allConnections = jsonToObject(makeRequest(connectionsBaseUrl, "GET", null, authnToken),
TypeFactory.defaultInstance()
.constructCollectionType(List.class, ConnectionResponseDTO.class));
assertEquals(27, allConnections.size());
gitHub = createConnection(authnToken, "GitHub Connection",
"This is a test project hosting connection to GitHub.",
new ConnectionCredentials(gitHubProperties.getString("nodeable.github.username"),
gitHubProperties.getString("nodeable.github.password")),
ProviderIdConstants.GITHUB_PROVIDER_ID, null,
ConnectionTypeConstants.PROJECT_HOSTING_TYPE, AuthType.USERNAME_PASSWORD);
allConnections = jsonToObject(makeRequest(connectionsBaseUrl, "GET", null, authnToken),
TypeFactory.defaultInstance()