From 272fb51fc5f7dcbef163938c3230ef1e4f87640a Mon Sep 17 00:00:00 2001 From: Julien HENRY <julien.henry@sonarsource.com> Date: Thu, 19 Feb 2015 23:06:58 +0100 Subject: SONAR-5931 Cleanup new issue API --- .../org/sonar/api/batch/sensor/issue/internal/DefaultIssueTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sonar-plugin-api/src/test/java/org') 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!"); -- cgit v1.2.3