aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-ws
diff options
context:
space:
mode:
authorZipeng WU <zipeng.wu@sonarsource.com>2021-03-29 15:50:52 +0200
committersonartech <sonartech@sonarsource.com>2021-04-19 20:03:40 +0000
commita12c41da418594d9cf556ebfde3477d20e8ecef4 (patch)
treeb1f976df0c89dc9877c8e1692b2a694d0b5a9800 /server/sonar-webserver-ws
parent9e0d06262a0bb9bc262f228688c7989e92fea486 (diff)
downloadsonarqube-a12c41da418594d9cf556ebfde3477d20e8ecef4.tar.gz
sonarqube-a12c41da418594d9cf556ebfde3477d20e8ecef4.zip
SONAR-14642 - SSF-142
Diffstat (limited to 'server/sonar-webserver-ws')
-rw-r--r--server/sonar-webserver-ws/src/test/java/org/sonar/server/ws/WebServiceEngineTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-webserver-ws/src/test/java/org/sonar/server/ws/WebServiceEngineTest.java b/server/sonar-webserver-ws/src/test/java/org/sonar/server/ws/WebServiceEngineTest.java
index fad9268dae5..7b86c69e5e7 100644
--- a/server/sonar-webserver-ws/src/test/java/org/sonar/server/ws/WebServiceEngineTest.java
+++ b/server/sonar-webserver-ws/src/test/java/org/sonar/server/ws/WebServiceEngineTest.java
@@ -208,7 +208,7 @@ public class WebServiceEngineTest {
DumbResponse response = run(request, newWs("api/foo", a -> a.setHandler((req, resp) -> request.param("unknown"))));
- assertThat(response.stream().outputAsString()).isEqualTo("{\"errors\":[{\"msg\":\"BUG - parameter 'unknown' is undefined for action 'foo'\"}]}");
+ assertThat(response.stream().outputAsString()).isEqualTo("{\"errors\":[{\"msg\":\"BUG - parameter \\u0027unknown\\u0027 is undefined for action \\u0027foo\\u0027\"}]}");
assertThat(response.stream().status()).isEqualTo(400);
}
@@ -221,7 +221,7 @@ public class WebServiceEngineTest {
a.setHandler((req, resp) -> request.mandatoryParam("bar"));
}));
- assertThat(response.stream().outputAsString()).isEqualTo("{\"errors\":[{\"msg\":\"The 'bar' parameter is missing\"}]}");
+ assertThat(response.stream().outputAsString()).isEqualTo("{\"errors\":[{\"msg\":\"The \\u0027bar\\u0027 parameter is missing\"}]}");
assertThat(response.stream().status()).isEqualTo(400);
}
@@ -235,7 +235,7 @@ public class WebServiceEngineTest {
a.setHandler((req, resp) -> request.param("bar"));
}));
- assertThat(response.stream().outputAsString()).isEqualTo("{\"errors\":[{\"msg\":\"The 'bar' parameter is missing\"}]}");
+ assertThat(response.stream().outputAsString()).isEqualTo("{\"errors\":[{\"msg\":\"The \\u0027bar\\u0027 parameter is missing\"}]}");
assertThat(response.stream().status()).isEqualTo(400);
}
@@ -287,7 +287,7 @@ public class WebServiceEngineTest {
a.setHandler((req, resp) -> resp.stream().output().write(req.mandatoryParam("format").getBytes(UTF_8)));
}));
- assertThat(response.stream().outputAsString()).isEqualTo("{\"errors\":[{\"msg\":\"Value of parameter 'format' (yml) must be one of: [json, xml]\"}]}");
+ assertThat(response.stream().outputAsString()).isEqualTo("{\"errors\":[{\"msg\":\"Value of parameter \\u0027format\\u0027 (yml) must be one of: [json, xml]\"}]}");
assertThat(response.stream().status()).isEqualTo(400);
}