diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2024-10-24 10:54:15 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-10-24 20:02:44 +0000 |
commit | e0a940902f37156757e84544d0a876f47f69040f (patch) | |
tree | 988c74e5242ad1bb349148601bb207b7cf515b09 /server/sonar-webserver-es/src/testFixtures | |
parent | c11922595bf67a70a38588a6f7763fb6f6c14501 (diff) | |
download | sonarqube-e0a940902f37156757e84544d0a876f47f69040f.tar.gz sonarqube-e0a940902f37156757e84544d0a876f47f69040f.zip |
SONAR-23427 Stop relying on Qualifiers, Scopes and ResourceType from the plugin API
Diffstat (limited to 'server/sonar-webserver-es/src/testFixtures')
-rw-r--r-- | server/sonar-webserver-es/src/testFixtures/java/org/sonar/server/permission/index/PermissionIndexerTester.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/sonar-webserver-es/src/testFixtures/java/org/sonar/server/permission/index/PermissionIndexerTester.java b/server/sonar-webserver-es/src/testFixtures/java/org/sonar/server/permission/index/PermissionIndexerTester.java index e2bc7703ed0..ceb5c3b682b 100644 --- a/server/sonar-webserver-es/src/testFixtures/java/org/sonar/server/permission/index/PermissionIndexerTester.java +++ b/server/sonar-webserver-es/src/testFixtures/java/org/sonar/server/permission/index/PermissionIndexerTester.java @@ -22,8 +22,7 @@ package org.sonar.server.permission.index; import com.google.common.base.Preconditions; import java.util.List; import java.util.stream.Stream; -import org.assertj.core.api.Assertions; -import org.sonar.api.resources.Qualifiers; +import org.sonar.db.component.ComponentQualifiers; import org.sonar.db.component.ComponentDto; import org.sonar.db.entity.EntityDto; import org.sonar.db.user.GroupDto; @@ -43,7 +42,7 @@ public class PermissionIndexerTester { public PermissionIndexerTester allowOnlyAnyone(ComponentDto... portfolios) { stream(portfolios) - .forEach(p -> Preconditions.checkArgument(p.qualifier().equals(Qualifiers.VIEW), "Permission should be applied on a portfolio")); + .forEach(p -> Preconditions.checkArgument(p.qualifier().equals(ComponentQualifiers.VIEW), "Permission should be applied on a portfolio")); return allow(stream(portfolios).map(project -> new IndexPermissions(project.uuid(), project.qualifier()).allowAnyone()).toList()); } |