diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-10-01 14:11:16 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-10-02 15:27:04 +0200 |
commit | c7e2e99344f9ac49cd664a85193a260bdc37599e (patch) | |
tree | f3b3fdc652ed4f2c4ffee9e3048598d24cbe9214 /sonar-core/src/test | |
parent | 7b8464adf1bc41765efe1f582e7fef3ee7d9af48 (diff) | |
download | sonarqube-c7e2e99344f9ac49cd664a85193a260bdc37599e.tar.gz sonarqube-c7e2e99344f9ac49cd664a85193a260bdc37599e.zip |
SONAR-5603 Get issues from E/S in Unresolved Issues per Assignee widget
Conflicts:
server/sonar-server/src/test/java/org/sonar/server/issue/index/IssueIndexMediumTest.java
Diffstat (limited to 'sonar-core/src/test')
-rw-r--r-- | sonar-core/src/test/java/org/sonar/core/issue/db/IssueStatsDaoTest.java | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/sonar-core/src/test/java/org/sonar/core/issue/db/IssueStatsDaoTest.java b/sonar-core/src/test/java/org/sonar/core/issue/db/IssueStatsDaoTest.java deleted file mode 100644 index 304185d13e1..00000000000 --- a/sonar-core/src/test/java/org/sonar/core/issue/db/IssueStatsDaoTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * SonarQube, open source software quality management tool. - * Copyright (C) 2008-2014 SonarSource - * mailto:contact AT sonarsource DOT com - * - * SonarQube is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * SonarQube is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -package org.sonar.core.issue.db; - -import org.junit.Before; -import org.junit.Test; -import org.sonar.core.persistence.AbstractDaoTestCase; -import org.sonar.server.issue.IssueQuery; - -import java.util.List; - -import static org.fest.assertions.Assertions.assertThat; - -public class IssueStatsDaoTest extends AbstractDaoTestCase { - - IssueStatsDao dao; - - @Before - public void createDao() { - dao = new IssueStatsDao(getMyBatis()); - } - - @Test - public void should_select_assignees(){ - setupData("should_select_assignees"); - - IssueQuery query = IssueQuery.builder().requiredRole("user").build(); - List<Object> results = dao.selectIssuesColumn(query, IssueStatsColumn.ASSIGNEE, null); - assertThat(results).hasSize(3); - // 2 perceval, and one null - assertThat(results).containsOnly("perceval", null); - } -} |