Package org.sonar.wsclient.project

Examples of org.sonar.wsclient.project.ProjectClient.create()


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

    httpServer.stubResponseBody("{\"id\":\"1\",\"k\":\"polop\",\"nm\":\"Polop\",\"sc\":\"PRJ\",\"qu\":\"TRK\"}");

    ProjectClient client = new DefaultProjectClient(requestFactory);
    Project result = client.create(NewProject.create().key("polop").name("Polop"));

    assertThat(httpServer.requestedPath()).isEqualTo("/api/projects/create");
    assertThat(httpServer.requestParams()).includes(
      entry("key", "polop"),
      entry("name", "Polop")
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.