From 39abd3de73733b18e99c5e81ab7f2dec45d9aec7 Mon Sep 17 00:00:00 2001 From: Zipeng WU Date: Thu, 1 Apr 2021 18:43:48 +0200 Subject: Revert "SONAR-14642 - SSF-142" This reverts commit 0810d5dcbc8e49b4f064223cd271225acb397e83. --- .../src/test/java/org/sonar/api/utils/text/JsonWriterTest.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'sonar-plugin-api/src/test') diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/utils/text/JsonWriterTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/utils/text/JsonWriterTest.java index 9ae97fcfa35..ad523fb74f9 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/utils/text/JsonWriterTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/utils/text/JsonWriterTest.java @@ -152,15 +152,7 @@ public class JsonWriterTest { underTest.beginObject() .prop("foo", "") .endObject().close(); - expect("{\"foo\":\"\\u003chello \\\"world\\\"\\u003e\"}"); - } - - @Test - public void escape_html_characters() { - underTest.beginObject() - .prop("foo", "123<>abc") - .endObject().close(); - expect("{\"foo\":\"123\\u003c\\u003eabc\"}"); + expect("{\"foo\":\"\"}"); } @Test -- cgit v1.2.3