Search in sources :

Example 1 with AddRequest

use of org.sonarqube.ws.client.notification.AddRequest in project sonarqube by SonarSource.

the class RemoveActionTest method call.

private TestResponse call(AddRequest.Builder wsRequestBuilder) {
    AddRequest wsRequest = wsRequestBuilder.build();
    TestRequest request = ws.newRequest();
    request.setParam(PARAM_TYPE, wsRequest.getType());
    setNullable(wsRequest.getChannel(), channel -> request.setParam(PARAM_CHANNEL, channel));
    setNullable(wsRequest.getProject(), project -> request.setParam(PARAM_PROJECT, project));
    return request.execute();
}
Also used : AddRequest(org.sonarqube.ws.client.notification.AddRequest) TestRequest(org.sonar.server.ws.TestRequest)

Example 2 with AddRequest

use of org.sonarqube.ws.client.notification.AddRequest in project sonarqube by SonarSource.

the class AddActionTest method call.

private TestResponse call(AddRequest.Builder wsRequestBuilder) {
    AddRequest wsRequest = wsRequestBuilder.build();
    TestRequest request = ws.newRequest();
    request.setParam(PARAM_TYPE, wsRequest.getType());
    setNullable(wsRequest.getChannel(), channel -> request.setParam(PARAM_CHANNEL, channel));
    setNullable(wsRequest.getProject(), project -> request.setParam(PARAM_PROJECT, project));
    return request.execute();
}
Also used : AddRequest(org.sonarqube.ws.client.notification.AddRequest) TestRequest(org.sonar.server.ws.TestRequest)

Aggregations

TestRequest (org.sonar.server.ws.TestRequest)2 AddRequest (org.sonarqube.ws.client.notification.AddRequest)2