]> source.dussan.org Git - sonarqube.git/commitdiff
Fix Request tests
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Fri, 30 Dec 2016 17:11:59 +0000 (18:11 +0100)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Fri, 30 Dec 2016 17:11:59 +0000 (18:11 +0100)
sonar-plugin-api/src/test/java/org/sonar/api/server/ws/RequestTest.java

index 08dc23b85356c9d01b4c257c9af2a27eee248cd7..fcd71d8ce7ac811f6bc8bd7cd4e54d22b4430d3e 100644 (file)
@@ -226,7 +226,7 @@ public class RequestTest {
 
   @Test
   public void getParam_of_missing_string_parameter() {
-    Request.StringParam stringParam = underTest.getParam("boo");
+    Request.StringParam stringParam = underTest.getParam("a_string");
 
     assertThat(stringParam.isPresent()).isFalse();
     expectSupplierCanNotBeNullNPE(() -> stringParam.or(null));
@@ -281,7 +281,7 @@ public class RequestTest {
 
   @Test
   public void getParam_with_validation_of_missing_string_parameter() {
-    Request.StringParam stringParam = underTest.getParam("boo", (str) -> {
+    Request.StringParam stringParam = underTest.getParam("a_string", (str) -> {
       throw new IllegalStateException("validator should not be called");
     });
 
@@ -355,7 +355,7 @@ public class RequestTest {
 
   @Test
   public void getParam_of_missing_parameter_of_unspecified_type() {
-    Request.Param<Object> param = underTest.getParam("baa", (rqt, key) -> {
+    Request.Param<Object> param = underTest.getParam("a_string", (rqt, key) -> {
       throw new IllegalStateException("retrieveAndValidate BiConsumer should not be called");
     });