use of org.sonarqube.ws.WsProjectLinks.SearchWsResponse in project sonarqube by SonarSource.
the class SearchActionTest method request_by_project_key.
@Test
public void request_by_project_key() throws IOException {
ComponentDto project = insertProject();
insertHomepageLink(project.uuid());
logInAsProjectAdministrator(project);
SearchWsResponse response = callByKey(project.key());
assertThat(response.getLinksCount()).isEqualTo(1);
assertThat(response.getLinks(0).getName()).isEqualTo("Homepage");
}
Aggregations