diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-04-24 12:19:11 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-04-24 12:19:23 +0200 |
commit | abd786d2c5185b0b130122058a50cadb4702a6a0 (patch) | |
tree | 8741562c1c9ea0bf2282cf89b9beb1426c756a95 /plugins/sonar-dbcleaner-plugin | |
parent | 7c1aab8ce34614c06904f1dce7fafd4b3e52c0bc (diff) | |
download | sonarqube-abd786d2c5185b0b130122058a50cadb4702a6a0.tar.gz sonarqube-abd786d2c5185b0b130122058a50cadb4702a6a0.zip |
Rename PropertyDefinitions to PropertyDefs and PropertyFieldDefinition to PropertyFieldDef
Diffstat (limited to 'plugins/sonar-dbcleaner-plugin')
-rw-r--r-- | plugins/sonar-dbcleaner-plugin/src/test/java/org/sonar/plugins/dbcleaner/DefaultPurgeTaskTest.java | 10 |
1 files changed, 4 insertions, 6 deletions
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 6a396887de3..38443e3097a 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.PropertyDefinitions; +import org.sonar.api.config.PropertyDefs; import org.sonar.api.config.Settings; import org.sonar.api.resources.Scopes; import org.sonar.core.purge.PurgeDao; @@ -31,15 +31,13 @@ import org.sonar.plugins.dbcleaner.period.DefaultPeriodCleaner; import static org.mockito.Matchers.any; import static org.mockito.Matchers.anyLong; -import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.verify; -import static org.mockito.Mockito.when; +import static org.mockito.Mockito.*; public class DefaultPurgeTaskTest { @Test public void shouldNotDeleteHistoricalDataOfDirectories() { PurgeDao purgeDao = mock(PurgeDao.class); - Settings settings = new Settings(new PropertyDefinitions(DefaultPurgeTask.class)); + Settings settings = new Settings(new PropertyDefs(DefaultPurgeTask.class)); settings.setProperty(DbCleanerConstants.PROPERTY_CLEAN_DIRECTORY, "false"); DefaultPurgeTask task = new DefaultPurgeTask(purgeDao, settings, mock(DefaultPeriodCleaner.class), mock(PurgeProfiler.class)); @@ -51,7 +49,7 @@ public class DefaultPurgeTaskTest { @Test public void shouldDeleteHistoricalDataOfDirectoriesByDefault() { PurgeDao purgeDao = mock(PurgeDao.class); - Settings settings = new Settings(new PropertyDefinitions(DefaultPurgeTask.class)); + Settings settings = new Settings(new PropertyDefs(DefaultPurgeTask.class)); DefaultPurgeTask task = new DefaultPurgeTask(purgeDao, settings, mock(DefaultPeriodCleaner.class), mock(PurgeProfiler.class)); task.purge(1L); |