Package org.sonar.wsclient.internal

Examples of org.sonar.wsclient.internal.HttpRequestFactory


    assertThat(actions).containsOnly("link-to-jira", "tweet");
  }

  @Test
  public void should_apply_action() {
    HttpRequestFactory requestFactory = new HttpRequestFactory(httpServer.url());
    httpServer.stubResponseBody("{\"issue\": {\"key\": \"ABCDE\"}}");

    IssueClient client = new DefaultIssueClient(requestFactory);
    Issue result = client.doAction("ABCDE", "tweet");
View Full Code Here


    assertThat(result).isNotNull();
  }

  @Test
  public void should_do_bulk_change() {
    HttpRequestFactory requestFactory = new HttpRequestFactory(httpServer.url());
    httpServer.stubResponseBody("{\"issuesChanged\": {\"total\": 2}, \"issuesNotChanged\": {\"total\": 1, \"issues\": [\"06ed4db6-fd96-450a-bcb0-e0184db50105\"]} }");

    BulkChangeQuery query = BulkChangeQuery.create()
      .issues("ABCD", "EFGH")
      .actions("assign")
View Full Code Here

TOP

Related Classes of org.sonar.wsclient.internal.HttpRequestFactory

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.