aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db/src/test/java/org
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-01-23 23:49:22 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-01-24 09:39:43 +0100
commiteae20d0b93407af371d8600a9e04a5dffd3e0a50 (patch)
tree5618a4afbd59e2c7c9d8e74746c44c06736b2116 /sonar-db/src/test/java/org
parent5542384ebb07ce5f95251dfc26425197249378fa (diff)
downloadsonarqube-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.java14
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");