Search in sources :

Example 1 with SearchWsRequest

use of org.sonarqube.ws.client.projectlinks.SearchWsRequest in project sonarqube by SonarSource.

the class LinksTest method verifyLinks.

private void verifyLinks() {
    WsClient wsClient = ItUtils.newWsClient(orchestrator);
    List<WsProjectLinks.Link> links = wsClient.projectLinks().search(new SearchWsRequest().setProjectKey(PROJECT_KEY)).getLinksList();
    verifyLink(links, "homepage", "http://www.simplesample.org_OVERRIDDEN");
    verifyLink(links, "ci", "http://bamboo.ci.codehaus.org/browse/SIMPLESAMPLE");
    verifyLink(links, "issue", "http://jira.codehaus.org/browse/SIMPLESAMPLE");
    verifyLink(links, "scm", "https://github.com/SonarSource/simplesample");
    verifyLink(links, "scm_dev", "scm:git:git@github.com:SonarSource/simplesample.git");
}
Also used : SearchWsRequest(org.sonarqube.ws.client.projectlinks.SearchWsRequest) WsClient(org.sonarqube.ws.client.WsClient)

Aggregations

WsClient (org.sonarqube.ws.client.WsClient)1 SearchWsRequest (org.sonarqube.ws.client.projectlinks.SearchWsRequest)1