aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-dbcleaner-plugin/src/test
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-02-14 14:10:07 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2012-02-14 14:11:05 +0100
commit1065f1eb91fb05b26c32432625236ea39ea4fcee (patch)
tree31eba53ea07bcf84d776a81d2e4f8c5c4fc20c50 /plugins/sonar-dbcleaner-plugin/src/test
parent16773f7fbbbf5f8418474da63624a4168b883420 (diff)
downloadsonarqube-1065f1eb91fb05b26c32432625236ea39ea4fcee.tar.gz
sonarqube-1065f1eb91fb05b26c32432625236ea39ea4fcee.zip
Improve the component org.sonar.dbcleaner.api.PurgeTask
* add javadoc * use simple and generic method names
Diffstat (limited to 'plugins/sonar-dbcleaner-plugin/src/test')
-rw-r--r--plugins/sonar-dbcleaner-plugin/src/test/java/org/sonar/plugins/dbcleaner/DefaultPurgeTaskTest.java6
1 files changed, 3 insertions, 3 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 4aa4fa4dd9f..8947b8e21fd 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
@@ -37,7 +37,7 @@ public class DefaultPurgeTaskTest {
settings.setProperty(DbCleanerConstants.PROPERTY_CLEAN_DIRECTORY, "false");
DefaultPurgeTask task = new DefaultPurgeTask(purgeDao, settings, mock(DefaultPeriodCleaner.class));
- task.purgeProject(1L);
+ task.purge(1L);
verify(purgeDao).purgeProject(1L, new String[]{Scopes.FILE});
}
@@ -48,7 +48,7 @@ public class DefaultPurgeTaskTest {
Settings settings = new Settings(new PropertyDefinitions(DefaultPurgeTask.class));
DefaultPurgeTask task = new DefaultPurgeTask(purgeDao, settings, mock(DefaultPeriodCleaner.class));
- task.purgeProject(1L);
+ task.purge(1L);
verify(purgeDao).purgeProject(1L, new String[]{Scopes.DIRECTORY, Scopes.FILE});
}
@@ -59,7 +59,7 @@ public class DefaultPurgeTaskTest {
when(purgeDao.purgeProject(anyLong(), (String[]) any())).thenThrow(new RuntimeException());
DefaultPurgeTask task = new DefaultPurgeTask(purgeDao, new Settings(), mock(DefaultPeriodCleaner.class));
- task.purgeProject(1L);
+ task.purge(1L);
verify(purgeDao).purgeProject(anyLong(), (String[]) any());
}