]> source.dussan.org Git - sonarqube.git/commitdiff
Rename DbTester#fileSourceTester to fileSources
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Wed, 23 Aug 2017 16:44:37 +0000 (18:44 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Wed, 23 Aug 2017 16:44:37 +0000 (18:44 +0200)
server/sonar-db-dao/src/test/java/org/sonar/db/DbTester.java
server/sonar-db-dao/src/test/java/org/sonar/db/component/ComponentDaoTest.java

index 202c83aa36f15618ebcd426c59069d58d9b49dc2..f7b41634a4d4fa270fae817a35bb60a01c1a93bc 100644 (file)
@@ -229,7 +229,7 @@ public class DbTester extends AbstractDbTester<TestDb> {
     return measureDbTester;
   }
 
-  public FileSourceTester fileSourceTester() {
+  public FileSourceTester fileSources() {
     return fileSourceTester;
   }
 
index 8bfea9a812ff33ef00295a47ef4b3482bf2ee444..b63377d8427f7983c65aa6c5e534d2d94f3c1ac8 100644 (file)
@@ -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()))