aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-cpd-plugin/src
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-10-13 11:54:50 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2014-10-14 14:26:45 +0200
commit6882924ef2d57618e9391c20b1a7a54546a7d9dd (patch)
treede6469b2b4aa3f9599995186317b037c715024c9 /plugins/sonar-cpd-plugin/src
parent95551739d6659af8c03250a708f075937e607456 (diff)
downloadsonarqube-6882924ef2d57618e9391c20b1a7a54546a7d9dd.tar.gz
sonarqube-6882924ef2d57618e9391c20b1a7a54546a7d9dd.zip
SONAR-5389 Refactor dependency API
Diffstat (limited to 'plugins/sonar-cpd-plugin/src')
-rw-r--r--plugins/sonar-cpd-plugin/src/test/java/org/sonar/plugins/cpd/medium/CpdMediumTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/sonar-cpd-plugin/src/test/java/org/sonar/plugins/cpd/medium/CpdMediumTest.java b/plugins/sonar-cpd-plugin/src/test/java/org/sonar/plugins/cpd/medium/CpdMediumTest.java
index 1344179bfb2..56805e5dd7a 100644
--- a/plugins/sonar-cpd-plugin/src/test/java/org/sonar/plugins/cpd/medium/CpdMediumTest.java
+++ b/plugins/sonar-cpd-plugin/src/test/java/org/sonar/plugins/cpd/medium/CpdMediumTest.java
@@ -105,7 +105,7 @@ public class CpdMediumTest {
// 4 measures per file
assertThat(result.measures()).hasSize(8);
- InputFile inputFile = result.inputFiles().get(0);
+ InputFile inputFile = result.inputFile("src/sample1.xoo");
// One clone group
List<DuplicationGroup> duplicationGroups = result.duplicationsFor(inputFile);
assertThat(duplicationGroups).hasSize(1);