From c92204babaabb0d2158bfb64ad9742baeddb20c7 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Wed, 23 Aug 2017 18:44:37 +0200 Subject: [PATCH] Rename DbTester#fileSourceTester to fileSources --- .../sonar-db-dao/src/test/java/org/sonar/db/DbTester.java | 2 +- .../java/org/sonar/db/component/ComponentDaoTest.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/sonar-db-dao/src/test/java/org/sonar/db/DbTester.java b/server/sonar-db-dao/src/test/java/org/sonar/db/DbTester.java index 202c83aa36f..f7b41634a4d 100644 --- a/server/sonar-db-dao/src/test/java/org/sonar/db/DbTester.java +++ b/server/sonar-db-dao/src/test/java/org/sonar/db/DbTester.java @@ -229,7 +229,7 @@ public class DbTester extends AbstractDbTester { return measureDbTester; } - public FileSourceTester fileSourceTester() { + public FileSourceTester fileSources() { return fileSourceTester; } diff --git a/server/sonar-db-dao/src/test/java/org/sonar/db/component/ComponentDaoTest.java b/server/sonar-db-dao/src/test/java/org/sonar/db/component/ComponentDaoTest.java index 8bfea9a812f..b63377d8427 100644 --- a/server/sonar-db-dao/src/test/java/org/sonar/db/component/ComponentDaoTest.java +++ b/server/sonar-db-dao/src/test/java/org/sonar/db/component/ComponentDaoTest.java @@ -462,11 +462,11 @@ public class ComponentDaoTest { ComponentDto project = db.components().insertPrivateProject(); ComponentDto module = db.components().insertComponent(newModuleDto(project)); ComponentDto fileDirectlyOnModule = db.components().insertComponent(newFileDto(module)); - FileSourceDto fileSourceDirectlyOnModule = db.fileSourceTester().insertFileSource(fileDirectlyOnModule); + FileSourceDto fileSourceDirectlyOnModule = db.fileSources().insertFileSource(fileDirectlyOnModule); ComponentDto subModule = db.components().insertComponent(newModuleDto(module)); ComponentDto directory = db.components().insertComponent(newDirectory(subModule, "src")); ComponentDto file = db.components().insertComponent(newFileDto(subModule, directory)); - FileSourceDto fileSource = db.fileSourceTester().insertFileSource(file); + FileSourceDto fileSource = db.fileSources().insertFileSource(file); // From root project assertThat(underTest.selectEnabledDescendantFiles(dbSession, project.uuid())) @@ -499,11 +499,11 @@ public class ComponentDaoTest { ComponentDto project = db.components().insertPrivateProject(); ComponentDto module = db.components().insertComponent(newModuleDto(project)); ComponentDto fileDirectlyOnModule = db.components().insertComponent(newFileDto(module)); - FileSourceDto fileSourceDirectlyOnModule = db.fileSourceTester().insertFileSource(fileDirectlyOnModule); + FileSourceDto fileSourceDirectlyOnModule = db.fileSources().insertFileSource(fileDirectlyOnModule); ComponentDto subModule = db.components().insertComponent(newModuleDto(module)); ComponentDto directory = db.components().insertComponent(newDirectory(subModule, "src")); ComponentDto file = db.components().insertComponent(newFileDto(subModule, directory)); - FileSourceDto fileSource = db.fileSourceTester().insertFileSource(file); + FileSourceDto fileSource = db.fileSources().insertFileSource(file); // From root project assertThat(underTest.selectEnabledFilesFromProject(dbSession, project.uuid())) -- 2.39.5