diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2012-01-05 16:15:29 +0100 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2012-01-05 16:22:13 +0100 |
commit | 79b2ad685108133a0bd2c27d28e0b514beae3485 (patch) | |
tree | 2f9437c72a331ce2460cda974dd6461c788e5380 /plugins/sonar-core-plugin/src/test/resources | |
parent | 20b04ec76cd7f45a446095d0873338be4e4bb87e (diff) | |
download | sonarqube-79b2ad685108133a0bd2c27d28e0b514beae3485.tar.gz sonarqube-79b2ad685108133a0bd2c27d28e0b514beae3485.zip |
Fix bug on UpdateReviewsDecorator when line number is NULL
Diffstat (limited to 'plugins/sonar-core-plugin/src/test/resources')
2 files changed, 21 insertions, 0 deletions
diff --git a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/sensors/UpdateReviewsDecoratorTest/fixture.xml b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/sensors/UpdateReviewsDecoratorTest/fixture.xml index 71bfcf97fac..7384c0e2e5f 100644 --- a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/sensors/UpdateReviewsDecoratorTest/fixture.xml +++ b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/sensors/UpdateReviewsDecoratorTest/fixture.xml @@ -55,5 +55,15 @@ rule_id="[null]" manual_violation="false" manual_severity="false"/> + <reviews + id="6" + status="OPEN" + rule_failure_permanent_id="6" + resource_id="1" + title="message OLD" + resource_line="[null]" + rule_id="[null]" + manual_violation="false" + manual_severity="false"/> </dataset>
\ No newline at end of file diff --git a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/sensors/UpdateReviewsDecoratorTest/shouldUpdateReviews-result.xml b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/sensors/UpdateReviewsDecoratorTest/shouldUpdateReviews-result.xml index cb41697da88..55e6c7fc05a 100644 --- a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/sensors/UpdateReviewsDecoratorTest/shouldUpdateReviews-result.xml +++ b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/sensors/UpdateReviewsDecoratorTest/shouldUpdateReviews-result.xml @@ -55,5 +55,16 @@ rule_id="[null]" manual_violation="false" manual_severity="false"/> + <reviews + id="6" + status="OPEN" + rule_failure_permanent_id="6" + resource_id="1" + title="message 6" + resource_line="[null]" + created_at="[null]" user_id="[null]" assignee_id="[null]" resolution="[null]" severity="[null]" project_id="[null]" + rule_id="[null]" + manual_violation="false" + manual_severity="false"/> </dataset>
\ No newline at end of file |