diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2013-12-17 11:39:55 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2013-12-17 11:39:55 +0100 |
commit | e526585b35b0bc6be9062fc94bfc204a2bae8392 (patch) | |
tree | e81a99548e88694ff556792e8c329608b78544f7 /sonar-core/src | |
parent | 15daf634efb55ce0fe4e651483c7fbc8098db116 (diff) | |
download | sonarqube-e526585b35b0bc6be9062fc94bfc204a2bae8392.tar.gz sonarqube-e526585b35b0bc6be9062fc94bfc204a2bae8392.zip |
SONAR-4535 Fix UT
Diffstat (limited to 'sonar-core/src')
-rw-r--r-- | sonar-core/src/test/java/org/sonar/core/qualityprofile/db/QualityProfileDaoTest.java | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sonar-core/src/test/java/org/sonar/core/qualityprofile/db/QualityProfileDaoTest.java b/sonar-core/src/test/java/org/sonar/core/qualityprofile/db/QualityProfileDaoTest.java index 47e37e05c6e..8dc59e0337e 100644 --- a/sonar-core/src/test/java/org/sonar/core/qualityprofile/db/QualityProfileDaoTest.java +++ b/sonar-core/src/test/java/org/sonar/core/qualityprofile/db/QualityProfileDaoTest.java @@ -22,7 +22,6 @@ package org.sonar.core.qualityprofile.db; import org.junit.Before; import org.junit.Test; -import org.sonar.core.component.ComponentDto; import org.sonar.core.persistence.AbstractDaoTestCase; import java.util.List; @@ -98,18 +97,7 @@ public class QualityProfileDaoTest extends AbstractDaoTestCase { public void select_projects() { setupData("projects"); - List<ComponentDto> dtos = dao.selectProjects("sonar.profile.java", "Sonar Way"); - assertThat(dtos).hasSize(2); - - ComponentDto componentDto1 = dtos.get(0); - assertThat(componentDto1.getId()).isEqualTo(1); - assertThat(componentDto1.key()).isEqualTo("org.codehaus.sonar:sonar"); - assertThat(componentDto1.name()).isEqualTo("SonarQube"); - - ComponentDto componentDto2 = dtos.get(1); - assertThat(componentDto2.getId()).isEqualTo(2); - assertThat(componentDto2.key()).isEqualTo("org.codehaus.sonar-plugins.java:java"); - assertThat(componentDto2.name()).isEqualTo("SonarQube Java"); + assertThat(dao.selectProjects("sonar.profile.java", "Sonar Way")).hasSize(2); } @Test |