From c11caf9caa0d193d5f492ccc541d917f1f47dd33 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Thu, 24 Apr 2014 12:43:43 +0200 Subject: [PATCH] SONAR-5189 Fix UT of CountUnresolvedIssuesDecorator --- .../core/issue/CountUnresolvedIssuesDecoratorTest.java | 6 +++--- 1 file 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); -- 2.39.5