Package org.sonar.api.server.ws

Examples of org.sonar.api.server.ws.Request


  }

  @Test
  public void verify_that_computation_service_is_called() throws Exception {
    Response response = mock(Response.class);
    Request request = mock(Request.class);
    when(request.mandatoryParam(UploadReportAction.PARAM_PROJECT_KEY)).thenReturn(DEFAULT_PROJECT_KEY);
    when(request.mandatoryParam(UploadReportAction.PARAM_SNAPSHOT)).thenReturn("123");

    sut.handle(request, response);

    verify(queue).add(DEFAULT_PROJECT_KEY, 123L);
    verify(analysisTaskLauncher).startAnalysisTaskNow();
View Full Code Here

TOP

Related Classes of org.sonar.api.server.ws.Request

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.