aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-04-25 09:04:27 +0200
committerJulien Lancelot <julien.lancelot@gmail.com>2013-04-25 09:04:27 +0200
commitcf4c5fe91ce78cc4cba28c8fa342e1edf7e0cf76 (patch)
tree295804bf71c8533424e12f4edfa5c6791d259103 /plugins
parent49ae063a7ba3ea2f717138280bfac0583b415d23 (diff)
downloadsonarqube-cf4c5fe91ce78cc4cba28c8fa342e1edf7e0cf76.tar.gz
sonarqube-cf4c5fe91ce78cc4cba28c8fa342e1edf7e0cf76.zip
Revert Rename PropertyDefinitions to PropertyDefs and PropertyFieldDefinition to PropertyFieldDef
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-cpd-plugin/src/test/java/org/sonar/plugins/cpd/CpdSensorTest.java4
-rw-r--r--plugins/sonar-dbcleaner-plugin/src/test/java/org/sonar/plugins/dbcleaner/DefaultPurgeTaskTest.java6
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/sonar-cpd-plugin/src/test/java/org/sonar/plugins/cpd/CpdSensorTest.java b/plugins/sonar-cpd-plugin/src/test/java/org/sonar/plugins/cpd/CpdSensorTest.java
index ed3038909ea..26d5637373f 100644
--- a/plugins/sonar-cpd-plugin/src/test/java/org/sonar/plugins/cpd/CpdSensorTest.java
+++ b/plugins/sonar-cpd-plugin/src/test/java/org/sonar/plugins/cpd/CpdSensorTest.java
@@ -22,7 +22,7 @@ package org.sonar.plugins.cpd;
import org.apache.commons.configuration.PropertiesConfiguration;
import org.junit.Before;
import org.junit.Test;
-import org.sonar.api.config.PropertyDefs;
+import org.sonar.api.config.PropertyDefinitions;
import org.sonar.api.config.Settings;
import org.sonar.api.resources.Java;
import org.sonar.api.resources.Language;
@@ -44,7 +44,7 @@ public class CpdSensorTest {
IndexFactory indexFactory = mock(IndexFactory.class);
sonarEngine = new SonarEngine(indexFactory, null, null, null);
sonarBridgeEngine = new SonarBridgeEngine(indexFactory, null, null);
- settings = new Settings(new PropertyDefs(CpdPlugin.class));
+ settings = new Settings(new PropertyDefinitions(CpdPlugin.class));
sensor = new CpdSensor(sonarEngine, sonarBridgeEngine, settings);
}
diff --git a/plugins/sonar-dbcleaner-plugin/src/test/java/org/sonar/plugins/dbcleaner/DefaultPurgeTaskTest.java b/plugins/sonar-dbcleaner-plugin/src/test/java/org/sonar/plugins/dbcleaner/DefaultPurgeTaskTest.java
index 38443e3097a..1afad9051d8 100644
--- a/plugins/sonar-dbcleaner-plugin/src/test/java/org/sonar/plugins/dbcleaner/DefaultPurgeTaskTest.java
+++ b/plugins/sonar-dbcleaner-plugin/src/test/java/org/sonar/plugins/dbcleaner/DefaultPurgeTaskTest.java
@@ -21,7 +21,7 @@ package org.sonar.plugins.dbcleaner;
import org.junit.Test;
import org.sonar.api.CoreProperties;
-import org.sonar.api.config.PropertyDefs;
+import org.sonar.api.config.PropertyDefinitions;
import org.sonar.api.config.Settings;
import org.sonar.api.resources.Scopes;
import org.sonar.core.purge.PurgeDao;
@@ -37,7 +37,7 @@ public class DefaultPurgeTaskTest {
@Test
public void shouldNotDeleteHistoricalDataOfDirectories() {
PurgeDao purgeDao = mock(PurgeDao.class);
- Settings settings = new Settings(new PropertyDefs(DefaultPurgeTask.class));
+ Settings settings = new Settings(new PropertyDefinitions(DefaultPurgeTask.class));
settings.setProperty(DbCleanerConstants.PROPERTY_CLEAN_DIRECTORY, "false");
DefaultPurgeTask task = new DefaultPurgeTask(purgeDao, settings, mock(DefaultPeriodCleaner.class), mock(PurgeProfiler.class));
@@ -49,7 +49,7 @@ public class DefaultPurgeTaskTest {
@Test
public void shouldDeleteHistoricalDataOfDirectoriesByDefault() {
PurgeDao purgeDao = mock(PurgeDao.class);
- Settings settings = new Settings(new PropertyDefs(DefaultPurgeTask.class));
+ Settings settings = new Settings(new PropertyDefinitions(DefaultPurgeTask.class));
DefaultPurgeTask task = new DefaultPurgeTask(purgeDao, settings, mock(DefaultPeriodCleaner.class), mock(PurgeProfiler.class));
task.purge(1L);