From: Julien HENRY Date: Thu, 24 Apr 2014 10:43:43 +0000 (+0200) Subject: SONAR-5189 Fix UT of CountUnresolvedIssuesDecorator X-Git-Tag: 4.4-RC1~1409 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c11caf9caa0d193d5f492ccc541d917f1f47dd33;p=sonarqube.git SONAR-5189 Fix UT of CountUnresolvedIssuesDecorator --- 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);