Package org.sonar.wsclient.qprofile

Examples of org.sonar.wsclient.qprofile.QProfileResult


    HttpRequestFactory requestFactory = new HttpRequestFactory(httpServer.url());

    httpServer.stubResponseBody("{\"infos\":[\"Some info\"],\"warnings\":[\"Some warnings\"]}");

    DefaultQProfileClient client = new DefaultQProfileClient(requestFactory);
    QProfileResult result = client.restoreDefault("java");

    assertThat(httpServer.requestedPath()).isEqualTo("/api/qualityprofiles/restore_default");
    assertThat(httpServer.requestParams()).includes(
      entry("language", "java")
    );
    assertThat(result).isNotNull();
    assertThat(result.infos()).containsOnly("Some info");
    assertThat(result.warnings()).containsOnly("Some warnings");
  }
View Full Code Here

TOP

Related Classes of org.sonar.wsclient.qprofile.QProfileResult

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.