aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server-common
diff options
context:
space:
mode:
authorPierre <pierre.guillot@sonarsource.com>2021-08-11 14:38:24 +0200
committersonartech <sonartech@sonarsource.com>2021-08-19 20:08:14 +0000
commitf660a790f6d88b5d68bf1f1677cd2bc0ae657309 (patch)
treefa5bb206b49e799110f2a7a5addf7bea3153de4a /server/sonar-server-common
parent5aa5e0d62d01397b6af395afe87d61e52348b0b2 (diff)
downloadsonarqube-f660a790f6d88b5d68bf1f1677cd2bc0ae657309.tar.gz
sonarqube-f660a790f6d88b5d68bf1f1677cd2bc0ae657309.zip
SONAR-15142 remove dead code
Diffstat (limited to 'server/sonar-server-common')
-rw-r--r--server/sonar-server-common/src/test/java/org/sonar/server/component/index/ComponentIndexerTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-server-common/src/test/java/org/sonar/server/component/index/ComponentIndexerTest.java b/server/sonar-server-common/src/test/java/org/sonar/server/component/index/ComponentIndexerTest.java
index c4bd1e54ab9..d973d4ecabc 100644
--- a/server/sonar-server-common/src/test/java/org/sonar/server/component/index/ComponentIndexerTest.java
+++ b/server/sonar-server-common/src/test/java/org/sonar/server/component/index/ComponentIndexerTest.java
@@ -40,6 +40,7 @@ import static java.util.Collections.emptySet;
import static java.util.Collections.singletonList;
import static org.assertj.core.api.Assertions.assertThat;
import static org.elasticsearch.index.query.QueryBuilders.matchQuery;
+import static org.sonar.api.resources.Qualifiers.PROJECT;
import static org.sonar.server.component.index.ComponentIndexDefinition.FIELD_NAME;
import static org.sonar.server.component.index.ComponentIndexDefinition.TYPE_COMPONENT;
import static org.sonar.server.es.ProjectIndexer.Cause.PROJECT_CREATION;
@@ -207,7 +208,7 @@ public class ComponentIndexerTest {
indexProject(project, PROJECT_CREATION);
assertThatIndexHasSize(1);
- db.getDbClient().componentDao().delete(db.getSession(), project.uuid(), Qualifiers.PROJECT);
+ db.getDbClient().purgeDao().deleteProject(db.getSession(), project.uuid(), PROJECT);
indexProject(project, PROJECT_DELETION);
assertThatIndexHasSize(0);