diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-01-21 15:10:24 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-01-21 15:10:30 +0100 |
commit | 3d25febc1c4870c2f9d4d0f852824519c4544d38 (patch) | |
tree | 814540137be6b38910a7c2ceb902212c79e0c9e9 /sonar-batch-protocol/src/test | |
parent | 45e68e75931ccef49f458e8e473c75330675f685 (diff) | |
download | sonarqube-3d25febc1c4870c2f9d4d0f852824519c4544d38.tar.gz sonarqube-3d25febc1c4870c2f9d4d0f852824519c4544d38.zip |
SONAR-6012 Replace componentPath by componentKey
Diffstat (limited to 'sonar-batch-protocol/src/test')
-rw-r--r-- | sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/input/issues/PreviousIssueHelperTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/input/issues/PreviousIssueHelperTest.java b/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/input/issues/PreviousIssueHelperTest.java index 1e5264b4ad2..1462bb32e23 100644 --- a/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/input/issues/PreviousIssueHelperTest.java +++ b/sonar-batch-protocol/src/test/java/org/sonar/batch/protocol/input/issues/PreviousIssueHelperTest.java @@ -38,7 +38,7 @@ public class PreviousIssueHelperTest { PreviousIssue issue1 = new PreviousIssue(); issue1.setKey("key1"); - issue1.setComponentPath("path"); + issue1.setComponentKey("key"); issue1.setRuleKey("repokey", "rulekey"); issue1.setLine(2); issue1.setMessage("message"); @@ -58,7 +58,7 @@ public class PreviousIssueHelperTest { JSONAssert .assertEquals( - "[{\"key\": \"key1\", \"componentPath\": \"path\", \"ruleKey\": \"rulekey\", \"ruleRepo\": \"repokey\", \"line\": 2,\"message\": \"message\", \"severity\": \"severity\", \"resolution\": \"resolution\", \"status\": \"status\", \"checksum\": \"checksum\",\"assigneeLogin\": \"login\", \"assigneeFullname\": \"fullname\"}," + "[{\"key\": \"key1\", \"componentKey\": \"key\", \"ruleKey\": \"rulekey\", \"ruleRepo\": \"repokey\", \"line\": 2,\"message\": \"message\", \"severity\": \"severity\", \"resolution\": \"resolution\", \"status\": \"status\", \"checksum\": \"checksum\",\"assigneeLogin\": \"login\", \"assigneeFullname\": \"fullname\"}," + "{\"key\": \"key2\"}]", out.getBuffer().toString(), true); @@ -77,7 +77,7 @@ public class PreviousIssueHelperTest { StringWriter out = new StringWriter(); PreviousIssueHelper helper = PreviousIssueHelper.create(out); StringReader reader = new StringReader( - "[{\"key\": \"key1\", \"componentPath\": \"path\", \"ruleKey\": \"rulekey\", \"ruleRepo\": \"repokey\", \"line\": 2,\"message\": \"message\", \"severity\": \"severity\", \"resolution\": \"resolution\", \"status\": \"status\", \"checksum\": \"checksum\",\"assigneeLogin\": \"login\", \"assigneeFullname\": \"fullname\"}," + "[{\"key\": \"key1\", \"componentKey\": \"key\", \"ruleKey\": \"rulekey\", \"ruleRepo\": \"repokey\", \"line\": 2,\"message\": \"message\", \"severity\": \"severity\", \"resolution\": \"resolution\", \"status\": \"status\", \"checksum\": \"checksum\",\"assigneeLogin\": \"login\", \"assigneeFullname\": \"fullname\"}," + "{\"key\": \"key2\"}]"); @@ -88,7 +88,7 @@ public class PreviousIssueHelperTest { assertThat(iterator.hasNext()).isFalse(); assertThat(issue1.key()).isEqualTo("key1"); - assertThat(issue1.componentPath()).isEqualTo("path"); + assertThat(issue1.componentKey()).isEqualTo("key"); assertThat(issue1.ruleRepo()).isEqualTo("repokey"); assertThat(issue1.ruleKey()).isEqualTo("rulekey"); assertThat(issue1.line()).isEqualTo(2); |