aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/purge/PurgeDao.java2
-rw-r--r--sonar-core/src/test/java/org/sonar/core/purge/PurgeDaoTest.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/purge/PurgeDao.java b/sonar-core/src/main/java/org/sonar/core/purge/PurgeDao.java
index a93661f87a0..d4caa191ce3 100644
--- a/sonar-core/src/main/java/org/sonar/core/purge/PurgeDao.java
+++ b/sonar-core/src/main/java/org/sonar/core/purge/PurgeDao.java
@@ -137,7 +137,7 @@ public class PurgeDao {
}
}
- public PurgeDao deleteProject(long rootProjectId) {
+ public PurgeDao deleteResourceTree(long rootProjectId) {
final SqlSession session = mybatis.openBatchSession();
final PurgeMapper mapper = session.getMapper(PurgeMapper.class);
final PurgeVendorMapper vendorMapper = session.getMapper(PurgeVendorMapper.class);
diff --git a/sonar-core/src/test/java/org/sonar/core/purge/PurgeDaoTest.java b/sonar-core/src/test/java/org/sonar/core/purge/PurgeDaoTest.java
index 9269f7c4daf..9e7db168941 100644
--- a/sonar-core/src/test/java/org/sonar/core/purge/PurgeDaoTest.java
+++ b/sonar-core/src/test/java/org/sonar/core/purge/PurgeDaoTest.java
@@ -111,7 +111,7 @@ public class PurgeDaoTest extends DaoTestCase {
@Test
public void shouldDeleteProject() {
setupData("shouldDeleteProject");
- dao.deleteProject(1L);
+ dao.deleteResourceTree(1L);
assertEmptyTables("projects", "snapshots", "action_plans", "action_plans_reviews", "reviews", "review_comments");
}