diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2017-08-21 16:01:34 +0200 |
---|---|---|
committer | Janos Gyerik <janos.gyerik@sonarsource.com> | 2017-09-12 11:34:48 +0200 |
commit | b6b7953d88cdcca4edabc6b40101500df93fad6d (patch) | |
tree | 6c8a3b629c520ea299ce28036c27969b3dbbdac7 /sonar-ws/src/test | |
parent | 60b1fcc8948c4eeeb3e8843002fe0211994ddb7f (diff) | |
download | sonarqube-b6b7953d88cdcca4edabc6b40101500df93fad6d.tar.gz sonarqube-b6b7953d88cdcca4edabc6b40101500df93fad6d.zip |
SONAR-9616 Ability to manually delete a non-main branch
Diffstat (limited to 'sonar-ws/src/test')
-rw-r--r-- | sonar-ws/src/test/java/org/sonarqube/ws/client/projectbranches/ProjectBranchesServiceTest.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sonar-ws/src/test/java/org/sonarqube/ws/client/projectbranches/ProjectBranchesServiceTest.java b/sonar-ws/src/test/java/org/sonarqube/ws/client/projectbranches/ProjectBranchesServiceTest.java index 54bec8cd894..6a5b894e035 100644 --- a/sonar-ws/src/test/java/org/sonarqube/ws/client/projectbranches/ProjectBranchesServiceTest.java +++ b/sonar-ws/src/test/java/org/sonarqube/ws/client/projectbranches/ProjectBranchesServiceTest.java @@ -25,6 +25,7 @@ import org.junit.Test; import org.sonarqube.ws.WsBranches.ListWsResponse; import org.sonarqube.ws.WsBranches.ShowWsResponse; import org.sonarqube.ws.client.GetRequest; +import org.sonarqube.ws.client.PostRequest; import org.sonarqube.ws.client.ServiceTester; import org.sonarqube.ws.client.WsConnector; @@ -67,4 +68,16 @@ public class ProjectBranchesServiceTest { .andNoOtherParam(); } + @Test + public void delete() { + underTest.delete("projectKey", "my_branch"); + + PostRequest postRequest = serviceTester.getPostRequest(); + serviceTester.assertThat(postRequest) + .hasPath("delete") + .hasParam(PARAM_PROJECT, "projectKey") + .hasParam(PARAM_BRANCH, "my_branch") + .andNoOtherParam(); + } + } |