diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-01-23 23:49:22 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-01-24 09:39:43 +0100 |
commit | eae20d0b93407af371d8600a9e04a5dffd3e0a50 (patch) | |
tree | 5618a4afbd59e2c7c9d8e74746c44c06736b2116 /sonar-db/src/test/java/org | |
parent | 5542384ebb07ce5f95251dfc26425197249378fa (diff) | |
download | sonarqube-eae20d0b93407af371d8600a9e04a5dffd3e0a50.tar.gz sonarqube-eae20d0b93407af371d8600a9e04a5dffd3e0a50.zip |
Drop unused methods in SnapshotDao
Diffstat (limited to 'sonar-db/src/test/java/org')
-rw-r--r-- | sonar-db/src/test/java/org/sonar/db/component/SnapshotDaoTest.java | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/sonar-db/src/test/java/org/sonar/db/component/SnapshotDaoTest.java b/sonar-db/src/test/java/org/sonar/db/component/SnapshotDaoTest.java index f7d622198be..faf2c5e4d2a 100644 --- a/sonar-db/src/test/java/org/sonar/db/component/SnapshotDaoTest.java +++ b/sonar-db/src/test/java/org/sonar/db/component/SnapshotDaoTest.java @@ -30,7 +30,6 @@ import org.sonar.api.utils.System2; import org.sonar.db.DbClient; import org.sonar.db.DbSession; import org.sonar.db.DbTester; -import org.sonar.db.organization.OrganizationDto; import org.sonar.db.organization.OrganizationTesting; import static com.google.common.collect.Lists.newArrayList; @@ -104,19 +103,6 @@ public class SnapshotDaoTest { } @Test - public void test_selectByIds() { - OrganizationDto organizationDto = db.organizations().insert(); - SnapshotDto snapshot1 = componentDb.insertProjectAndSnapshot(newProjectDto(organizationDto)); - SnapshotDto snapshot2 = componentDb.insertProjectAndSnapshot(newProjectDto(organizationDto)); - SnapshotDto snapshot3 = componentDb.insertProjectAndSnapshot(newProjectDto(organizationDto)); - - List<SnapshotDto> result = underTest.selectByIds(dbSession, newArrayList(snapshot1.getId(), snapshot2.getId(), snapshot3.getId(), 42L)); - - assertThat(result).hasSize(3); - assertThat(result).extracting("id").containsOnly(snapshot1.getId(), snapshot2.getId(), snapshot3.getId()); - } - - @Test public void selectLastSnapshotByRootComponentUuid_returns_absent_when_no_last_snapshot() { Optional<SnapshotDto> snapshot = underTest.selectLastAnalysisByRootComponentUuid(db.getSession(), "uuid_123"); |