diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2014-04-24 12:43:43 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2014-04-24 12:43:43 +0200 |
commit | c11caf9caa0d193d5f492ccc541d917f1f47dd33 (patch) | |
tree | 4862b5c6a3f26ebc984566b8ea898089521a95cb /plugins | |
parent | 6d465a7eeee59a615cfbb27508dc40957142ee1b (diff) | |
download | sonarqube-c11caf9caa0d193d5f492ccc541d917f1f47dd33.tar.gz sonarqube-c11caf9caa0d193d5f492ccc541d917f1f47dd33.zip |
SONAR-5189 Fix UT of CountUnresolvedIssuesDecorator
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/issue/CountUnresolvedIssuesDecoratorTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/issue/CountUnresolvedIssuesDecoratorTest.java b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/issue/CountUnresolvedIssuesDecoratorTest.java index 4ee5cb5934b..600f455ca21 100644 --- a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/issue/CountUnresolvedIssuesDecoratorTest.java +++ b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/issue/CountUnresolvedIssuesDecoratorTest.java @@ -92,9 +92,9 @@ public class CountUnresolvedIssuesDecoratorTest { ruleB1 = Rule.create().setRepositoryKey("ruleB1").setKey("ruleB1").setName("nameB1"); ruleFinder = mock(RuleFinder.class); - when(ruleFinder.findByKey(ruleA1.getRepositoryKey(), ruleA1.getKey())).thenReturn(ruleA1); - when(ruleFinder.findByKey(ruleA2.getRepositoryKey(), ruleA2.getKey())).thenReturn(ruleA2); - when(ruleFinder.findByKey(ruleB1.getRepositoryKey(), ruleB1.getKey())).thenReturn(ruleB1); + when(ruleFinder.findByKey(ruleA1.ruleKey())).thenReturn(ruleA1); + when(ruleFinder.findByKey(ruleA2.ruleKey())).thenReturn(ruleA2); + when(ruleFinder.findByKey(ruleB1.ruleKey())).thenReturn(ruleB1); rightNow = new Date(); tenDaysAgo = DateUtils.addDays(rightNow, -10); |