diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-07-16 09:33:56 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-07-16 12:02:21 +0200 |
commit | e80f48e76280210651139743cf95aaec3fa0146e (patch) | |
tree | 7174422da48c6047cdc9dec44d163ed64c5cdf15 /sonar-db/src/test/java | |
parent | da81f4cfa7a7b7612f462a3e9b09b9113b65b54c (diff) | |
download | sonarqube-e80f48e76280210651139743cf95aaec3fa0146e.tar.gz sonarqube-e80f48e76280210651139743cf95aaec3fa0146e.zip |
Remove no more used PurgeDao.selectPurgeableFileUuids()
Diffstat (limited to 'sonar-db/src/test/java')
-rw-r--r-- | sonar-db/src/test/java/org/sonar/db/purge/PurgeDaoTest.java | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/sonar-db/src/test/java/org/sonar/db/purge/PurgeDaoTest.java b/sonar-db/src/test/java/org/sonar/db/purge/PurgeDaoTest.java index 6f1f5e0e336..b981084b439 100644 --- a/sonar-db/src/test/java/org/sonar/db/purge/PurgeDaoTest.java +++ b/sonar-db/src/test/java/org/sonar/db/purge/PurgeDaoTest.java @@ -66,7 +66,7 @@ public class PurgeDaoTest { @Test public void shouldDeleteHistoricalDataOfDirectoriesAndFiles() { dbTester.prepareDbUnit(getClass(), "shouldDeleteHistoricalDataOfDirectoriesAndFiles.xml"); - sut.purge(new PurgeConfiguration(new IdUuidPair(1L, "1"), new String[]{Scopes.DIRECTORY, Scopes.FILE}, 30), PurgeListener.EMPTY, new PurgeProfiler()); + sut.purge(new PurgeConfiguration(new IdUuidPair(1L, "1"), new String[] {Scopes.DIRECTORY, Scopes.FILE}, 30), PurgeListener.EMPTY, new PurgeProfiler()); dbTester.assertDbUnit(getClass(), "shouldDeleteHistoricalDataOfDirectoriesAndFiles-result.xml", "projects", "snapshots"); } @@ -75,7 +75,8 @@ public class PurgeDaoTest { dbTester.prepareDbUnit(getClass(), "disable_resources_without_last_snapshot.xml"); when(system2.now()).thenReturn(1450000000000L); sut.purge(newConfigurationWith30Days(system2), PurgeListener.EMPTY, new PurgeProfiler()); - dbTester.assertDbUnit(getClass(), "disable_resources_without_last_snapshot-result.xml", new String[]{"issue_close_date", "issue_update_date"}, "projects", "snapshots", "issues"); + dbTester.assertDbUnit(getClass(), "disable_resources_without_last_snapshot-result.xml", new String[] {"issue_close_date", "issue_update_date"}, "projects", "snapshots", + "issues"); } @Test @@ -125,15 +126,6 @@ public class PurgeDaoTest { dbTester.assertDbUnit(getClass(), "should_delete_all_closed_issues-result.xml", "issues", "issue_changes"); } - @Test - public void select_purgeable_file_uuids_and_only_them() { - dbTester.prepareDbUnit(getClass(), "select_purgeable_file_uuids.xml"); - - List<String> uuids = sut.selectPurgeableFiles(dbTester.getSession(), 1L); - - assertThat(uuids).containsOnly("GHIJ"); - } - private static PurgeableSnapshotDto getById(List<PurgeableSnapshotDto> snapshots, long id) { for (PurgeableSnapshotDto snapshot : snapshots) { if (snapshot.getSnapshotId() == id) { |