aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src/test
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2017-08-23 14:07:23 +0200
committerJanos Gyerik <janos.gyerik@sonarsource.com>2017-09-12 11:34:49 +0200
commit3c178a3e4fb93a013cf5e745b56a922caf2a9fc0 (patch)
tree97db9f430564065ea7092b1ca9d99fd23058b728 /sonar-ws/src/test
parent864a8c2617b4fa26f5c941a9bd3877f5c7422cf3 (diff)
downloadsonarqube-3c178a3e4fb93a013cf5e745b56a922caf2a9fc0.tar.gz
sonarqube-3c178a3e4fb93a013cf5e745b56a922caf2a9fc0.zip
SONAR-9616 Ability to set the name of the main branch
Diffstat (limited to 'sonar-ws/src/test')
-rw-r--r--sonar-ws/src/test/java/org/sonarqube/ws/client/projectbranches/ProjectBranchesServiceTest.java12
1 files changed, 12 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 6a5b894e035..a1596299511 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
@@ -80,4 +80,16 @@ public class ProjectBranchesServiceTest {
.andNoOtherParam();
}
+ @Test
+ public void rename() {
+ underTest.rename("projectKey", "my_branch");
+
+ PostRequest postRequest = serviceTester.getPostRequest();
+ serviceTester.assertThat(postRequest)
+ .hasPath("rename")
+ .hasParam(PARAM_PROJECT, "projectKey")
+ .hasParam(PARAM_BRANCH, "my_branch")
+ .andNoOtherParam();
+ }
+
}