diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-04-18 14:06:42 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-04-18 14:06:42 +0200 |
commit | 6334cb7d7397e1455099611b3b1259ad050706e6 (patch) | |
tree | 504571b61aa200cf6db44e959a4eb8cf4ad48c59 /sonar-batch/src/test/java/org/sonar/batch/issue/DefaultIssuableTest.java | |
parent | 4b3ec7d0ad9132cd79d35ec76940eb6d4ccb6578 (diff) | |
download | sonarqube-6334cb7d7397e1455099611b3b1259ad050706e6.tar.gz sonarqube-6334cb7d7397e1455099611b3b1259ad050706e6.zip |
SONAR-5218 Once a module has been turned into a project, its issues are no more visible in the UI
Diffstat (limited to 'sonar-batch/src/test/java/org/sonar/batch/issue/DefaultIssuableTest.java')
-rw-r--r-- | sonar-batch/src/test/java/org/sonar/batch/issue/DefaultIssuableTest.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/issue/DefaultIssuableTest.java b/sonar-batch/src/test/java/org/sonar/batch/issue/DefaultIssuableTest.java index 1f557c64ad1..90721058222 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/issue/DefaultIssuableTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/issue/DefaultIssuableTest.java @@ -23,6 +23,7 @@ import org.junit.Test; import org.sonar.api.component.Component; import org.sonar.api.issue.Issue; import org.sonar.api.issue.internal.DefaultIssue; +import org.sonar.api.resources.Project; import java.util.Arrays; import java.util.List; @@ -35,6 +36,7 @@ public class DefaultIssuableTest { ModuleIssues moduleIssues = mock(ModuleIssues.class); IssueCache cache = mock(IssueCache.class); + Project project = mock(Project.class); Component component = mock(Component.class); @Test @@ -44,7 +46,7 @@ public class DefaultIssuableTest { DefaultIssue unresolved = new DefaultIssue(); when(cache.byComponent("struts:org.apache.Action")).thenReturn(Arrays.asList(resolved, unresolved)); - DefaultIssuable perspective = new DefaultIssuable(component, moduleIssues, cache); + DefaultIssuable perspective = new DefaultIssuable(component, project, moduleIssues, cache); List<Issue> issues = perspective.issues(); assertThat(issues).containsOnly(unresolved); @@ -57,7 +59,7 @@ public class DefaultIssuableTest { DefaultIssue unresolved = new DefaultIssue(); when(cache.byComponent("struts:org.apache.Action")).thenReturn(Arrays.asList(resolved, unresolved)); - DefaultIssuable perspective = new DefaultIssuable(component, moduleIssues, cache); + DefaultIssuable perspective = new DefaultIssuable(component, project, moduleIssues, cache); List<Issue> issues = perspective.resolvedIssues(); assertThat(issues).containsOnly(resolved); |