diff options
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, 2 insertions, 4 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 90721058222..1f557c64ad1 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,7 +23,6 @@ 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; @@ -36,7 +35,6 @@ public class DefaultIssuableTest { ModuleIssues moduleIssues = mock(ModuleIssues.class); IssueCache cache = mock(IssueCache.class); - Project project = mock(Project.class); Component component = mock(Component.class); @Test @@ -46,7 +44,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, project, moduleIssues, cache); + DefaultIssuable perspective = new DefaultIssuable(component, moduleIssues, cache); List<Issue> issues = perspective.issues(); assertThat(issues).containsOnly(unresolved); @@ -59,7 +57,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, project, moduleIssues, cache); + DefaultIssuable perspective = new DefaultIssuable(component, moduleIssues, cache); List<Issue> issues = perspective.resolvedIssues(); assertThat(issues).containsOnly(resolved); |