aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/test/java/org/sonar/api
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2015-02-19 23:06:58 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2015-02-20 09:36:21 +0100
commit272fb51fc5f7dcbef163938c3230ef1e4f87640a (patch)
tree91cdc2d9847c9fb1fcacde60e0220e9aedf38578 /sonar-plugin-api/src/test/java/org/sonar/api
parent72d197c7c6b3a87668c4375d04b35e2d8339c427 (diff)
downloadsonarqube-272fb51fc5f7dcbef163938c3230ef1e4f87640a.tar.gz
sonarqube-272fb51fc5f7dcbef163938c3230ef1e4f87640a.zip
SONAR-5931 Cleanup new issue API
Diffstat (limited to 'sonar-plugin-api/src/test/java/org/sonar/api')
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/batch/sensor/issue/internal/DefaultIssueTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/batch/sensor/issue/internal/DefaultIssueTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/batch/sensor/issue/internal/DefaultIssueTest.java
index 8973939afe3..86be3bd947f 100644
--- a/sonar-plugin-api/src/test/java/org/sonar/api/batch/sensor/issue/internal/DefaultIssueTest.java
+++ b/sonar-plugin-api/src/test/java/org/sonar/api/batch/sensor/issue/internal/DefaultIssueTest.java
@@ -40,7 +40,7 @@ public class DefaultIssueTest {
SensorStorage storage = mock(SensorStorage.class);
DefaultIssue issue = new DefaultIssue(storage)
.onFile(new DefaultInputFile("foo", "src/Foo.php"))
- .ruleKey(RuleKey.of("repo", "rule"))
+ .forRule(RuleKey.of("repo", "rule"))
.atLine(1)
.effortToFix(10.0)
.message("Wrong way!");
@@ -61,7 +61,7 @@ public class DefaultIssueTest {
SensorStorage storage = mock(SensorStorage.class);
DefaultIssue issue = new DefaultIssue(storage)
.onProject()
- .ruleKey(RuleKey.of("repo", "rule"))
+ .forRule(RuleKey.of("repo", "rule"))
.effortToFix(10.0)
.message("Wrong way!");
@@ -83,7 +83,7 @@ public class DefaultIssueTest {
new DefaultIssue()
.onProject()
.onFile(new DefaultInputFile("foo", "src/Foo.php"))
- .ruleKey(RuleKey.of("repo", "rule"))
+ .forRule(RuleKey.of("repo", "rule"))
.atLine(1)
.effortToFix(10.0)
.message("Wrong way!");