use of org.sonarqube.ws.QualityProfiles.SearchWsResponse in project sonarqube by SonarSource.
the class SearchActionTest method empty_when_no_language_installed.
@Test
public void empty_when_no_language_installed() {
WsActionTester ws = new WsActionTester(new SearchAction(userSession, new Languages(), dbClient, new ComponentFinder(dbClient, null)));
db.qualityProfiles().insert();
SearchWsResponse result = call(ws.newRequest());
assertThat(result.getProfilesList()).isEmpty();
}
use of org.sonarqube.ws.QualityProfiles.SearchWsResponse in project sonarqube by SonarSource.
the class SearchAction method handle.
@Override
public void handle(Request request, Response response) throws Exception {
SearchWsResponse searchWsResponse = doHandle(toSearchWsRequest(request));
writeProtobuf(searchWsResponse, request, response);
}
Aggregations