aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-04-24 10:30:48 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2014-04-24 10:30:48 +0200
commit6d465a7eeee59a615cfbb27508dc40957142ee1b (patch)
tree2218d81d74024ef6594917f4bb12d15d8fbae7bc /sonar-batch/src
parentf1d6f4aa9221e4f71e2a14c52ecef54aec49aede (diff)
downloadsonarqube-6d465a7eeee59a615cfbb27508dc40957142ee1b.tar.gz
sonarqube-6d465a7eeee59a615cfbb27508dc40957142ee1b.zip
SONAR-3437 Fix UT of MeasurePersister
Diffstat (limited to 'sonar-batch/src')
-rw-r--r--sonar-batch/src/test/java/org/sonar/batch/index/MeasurePersisterTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/index/MeasurePersisterTest.java b/sonar-batch/src/test/java/org/sonar/batch/index/MeasurePersisterTest.java
index 9785c944b7a..bde25e7ddc0 100644
--- a/sonar-batch/src/test/java/org/sonar/batch/index/MeasurePersisterTest.java
+++ b/sonar-batch/src/test/java/org/sonar/batch/index/MeasurePersisterTest.java
@@ -114,7 +114,7 @@ public class MeasurePersisterTest extends AbstractDaoTestCase {
setupData("empty");
Rule rule = Rule.create("pmd", "key");
- when(ruleFinder.findByKey("pmd", "key")).thenReturn(rule);
+ when(ruleFinder.findByKey(rule.ruleKey())).thenReturn(rule);
Measure measure = new RuleMeasure(ncloc(), rule, RulePriority.MAJOR, 1).setValue(1234.0);
when(measureCache.entries()).thenReturn(Arrays.asList(new Cache.Entry<Measure>(new String[] {"foo", "ncloc"}, measure)));