diff options
author | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2016-12-30 18:11:59 +0100 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2016-12-30 18:11:59 +0100 |
commit | 49c21ce067b7d46da0a78a3ad660527406d6ac91 (patch) | |
tree | 04e3eae033900b043b170e655c5520f66597fec9 /sonar-plugin-api | |
parent | d431d6e9616e0133328fdc7592fad097966cee97 (diff) | |
download | sonarqube-49c21ce067b7d46da0a78a3ad660527406d6ac91.tar.gz sonarqube-49c21ce067b7d46da0a78a3ad660527406d6ac91.zip |
Fix Request tests
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/test/java/org/sonar/api/server/ws/RequestTest.java | 6 |
1 files changed, 3 insertions, 3 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 08dc23b8535..fcd71d8ce7a 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 @@ -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"); }); |