diff options
author | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2015-08-28 17:54:47 +0200 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2015-08-28 17:54:47 +0200 |
commit | d466e731496434f5253d36f5c5b3599f4589fdaa (patch) | |
tree | 6adc7d62ab45621a966838c67199b87dcdb2bade /sonar-plugin-api/src/test | |
parent | d9c700ff5c0c9e9908602c51aa24df492e76aa63 (diff) | |
download | sonarqube-d466e731496434f5253d36f5c5b3599f4589fdaa.tar.gz sonarqube-d466e731496434f5253d36f5c5b3599f4589fdaa.zip |
Trim all WS string request parameters
Diffstat (limited to 'sonar-plugin-api/src/test')
-rw-r--r-- | sonar-plugin-api/src/test/java/org/sonar/api/server/ws/RequestTest.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/server/ws/RequestTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/server/ws/RequestTest.java index 5cae0e2cdda..a9cde1cc415 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/server/ws/RequestTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/server/ws/RequestTest.java @@ -175,6 +175,7 @@ public class RequestTest { @Test public void param_as_string() { assertThat(request.setParam("a_string", "foo").param("a_string")).isEqualTo("foo"); + assertThat(request.setParam("a_string", " f o o \r\n ").param("a_string")).isEqualTo("f o o"); } @Test |