diff options
author | David Gageot <david@gageot.net> | 2012-06-19 17:33:09 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2012-06-19 17:54:06 +0200 |
commit | 061451b53d8a8fc2e3f4716705d6c6a28689baa8 (patch) | |
tree | e416986c1d63c56a1427ebf70e1e78dd5a74498b /sonar-batch | |
parent | dc1ff5ccbf40e2a5360fcc23f4bab843bad52cf7 (diff) | |
download | sonarqube-061451b53d8a8fc2e3f4716705d6c6a28689baa8.tar.gz sonarqube-061451b53d8a8fc2e3f4716705d6c6a28689baa8.zip |
Make it impossible to use AbstractDbUnitTestCase for iBatis tests
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/test/java/org/sonar/batch/index/DefaultResourcePersisterTest.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/index/DefaultResourcePersisterTest.java b/sonar-batch/src/test/java/org/sonar/batch/index/DefaultResourcePersisterTest.java index 03e580d68f1..8b34120b9f0 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/index/DefaultResourcePersisterTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/index/DefaultResourcePersisterTest.java @@ -67,7 +67,7 @@ public class DefaultResourcePersisterTest extends AbstractDbUnitTestCase { ResourcePersister persister = new DefaultResourcePersister(getSession()); persister.saveProject(singleProject, null); - checkTablesWithExcludedColumns("shouldSaveNewProject", new String[] {"build_date"}, "projects", "snapshots"); + checkTables("shouldSaveNewProject", new String[] {"build_date"}, "projects", "snapshots"); } @Test @@ -80,7 +80,7 @@ public class DefaultResourcePersisterTest extends AbstractDbUnitTestCase { persister.saveProject(moduleB, multiModuleProject); persister.saveProject(moduleB1, moduleB); - checkTablesWithExcludedColumns("shouldSaveNewMultiModulesProject", new String[] {"build_date"}, "projects", "snapshots"); + checkTables("shouldSaveNewMultiModulesProject", new String[] {"build_date"}, "projects", "snapshots"); } @Test @@ -92,7 +92,7 @@ public class DefaultResourcePersisterTest extends AbstractDbUnitTestCase { persister.saveResource(singleProject, new JavaPackage("org.foo").setEffectiveKey("foo:org.foo")); // check that the directory is attached to the project - checkTablesWithExcludedColumns("shouldSaveNewDirectory", new String[] {"build_date"}, "projects", "snapshots"); + checkTables("shouldSaveNewDirectory", new String[] {"build_date"}, "projects", "snapshots"); } @Test @@ -105,7 +105,7 @@ public class DefaultResourcePersisterTest extends AbstractDbUnitTestCase { persister.saveResource(singleProject, new Library("junit:junit", "4.8.2").setEffectiveKey("junit:junit"));// do nothing, already saved persister.saveResource(singleProject, new Library("junit:junit", "3.2").setEffectiveKey("junit:junit")); - checkTablesWithExcludedColumns("shouldSaveNewLibrary", new String[] {"build_date"}, "projects", "snapshots"); + checkTables("shouldSaveNewLibrary", new String[] {"build_date"}, "projects", "snapshots"); } @Test @@ -133,7 +133,7 @@ public class DefaultResourcePersisterTest extends AbstractDbUnitTestCase { singleProject.setDescription("new description"); persister.saveProject(singleProject, null); - checkTablesWithExcludedColumns("shouldUpdateExistingResource", new String[] {"build_date"}, "projects", "snapshots"); + checkTables("shouldUpdateExistingResource", new String[] {"build_date"}, "projects", "snapshots"); } // SONAR-1700 @@ -144,7 +144,7 @@ public class DefaultResourcePersisterTest extends AbstractDbUnitTestCase { ResourcePersister persister = new DefaultResourcePersister(getSession()); persister.saveProject(singleProject, null); - checkTablesWithExcludedColumns("shouldRemoveRootIndexIfResourceIsProject", new String[] {"build_date"}, "projects", "snapshots"); + checkTables("shouldRemoveRootIndexIfResourceIsProject", new String[] {"build_date"}, "projects", "snapshots"); } } |