diff options
author | Lukasz Jarocki <lukasz.jarocki@sonarsource.com> | 2022-12-15 15:20:40 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-12-15 20:03:33 +0000 |
commit | f0582195b40b656b525d7d0df55120f899b21693 (patch) | |
tree | 17732b64859daa336fe7924e9fa1e759512afec2 /server/sonar-webserver-es | |
parent | fc7657598b9f46a99cb21dc891f75ad20c8a8528 (diff) | |
download | sonarqube-f0582195b40b656b525d7d0df55120f899b21693.tar.gz sonarqube-f0582195b40b656b525d7d0df55120f899b21693.zip |
SONAR-17613 changing default branch for applications to follow the setting
Diffstat (limited to 'server/sonar-webserver-es')
-rw-r--r-- | server/sonar-webserver-es/src/test/java/org/sonar/server/issue/index/IssueQueryFactoryTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-webserver-es/src/test/java/org/sonar/server/issue/index/IssueQueryFactoryTest.java b/server/sonar-webserver-es/src/test/java/org/sonar/server/issue/index/IssueQueryFactoryTest.java index e77377b038f..90b7368f99d 100644 --- a/server/sonar-webserver-es/src/test/java/org/sonar/server/issue/index/IssueQueryFactoryTest.java +++ b/server/sonar-webserver-es/src/test/java/org/sonar/server/issue/index/IssueQueryFactoryTest.java @@ -55,7 +55,7 @@ import static org.sonar.api.resources.Qualifiers.APP; import static org.sonar.api.utils.DateUtils.addDays; import static org.sonar.api.utils.DateUtils.parseDateTime; import static org.sonar.api.web.UserRole.USER; -import static org.sonar.db.component.BranchDto.DEFAULT_PROJECT_MAIN_BRANCH_NAME; +import static org.sonar.db.component.BranchDto.DEFAULT_MAIN_BRANCH_NAME; import static org.sonar.db.component.ComponentTesting.newDirectory; import static org.sonar.db.component.ComponentTesting.newFileDto; import static org.sonar.db.component.ComponentTesting.newModuleDto; @@ -609,12 +609,12 @@ public class IssueQueryFactoryTest { assertThat(underTest.create(new SearchRequest() .setProjects(singletonList(project.getKey())) - .setBranch(DEFAULT_PROJECT_MAIN_BRANCH_NAME))) + .setBranch(DEFAULT_MAIN_BRANCH_NAME))) .extracting(IssueQuery::branchUuid, query -> new ArrayList<>(query.projectUuids()), IssueQuery::isMainBranch) .containsOnly(project.uuid(), singletonList(project.uuid()), true); assertThat(underTest.create(new SearchRequest() .setComponents(singletonList(project.getKey())) - .setBranch(DEFAULT_PROJECT_MAIN_BRANCH_NAME))) + .setBranch(DEFAULT_MAIN_BRANCH_NAME))) .extracting(IssueQuery::branchUuid, query -> new ArrayList<>(query.projectUuids()), IssueQuery::isMainBranch) .containsOnly(project.uuid(), singletonList(project.uuid()), true); } |