aboutsummaryrefslogtreecommitdiffstats
path: root/certServiceClient/src/test/java/org/onap
diff options
context:
space:
mode:
authorTomasz Wrobel <tomasz.wrobel@nokia.com>2020-11-19 14:22:14 +0100
committerTomasz Wrobel <tomasz.wrobel@nokia.com>2020-11-20 12:13:14 +0100
commita2f9f66c8971e14b117b49940946d565d0d118f7 (patch)
tree91c2f1fc26f1879ba4b8f4248c9f8a92ace3743b /certServiceClient/src/test/java/org/onap
parent75ee4a9d489b53b2abd6b44b1a1a46635a703d44 (diff)
[OOM CERT-SERVICE-CLIENT] Improve readability of URI regex
Issue-ID: OOM-2632 Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com> Change-Id: Ic016c788d4dfde95ecd5eca955508385cd144bb4
Diffstat (limited to 'certServiceClient/src/test/java/org/onap')
-rw-r--r--certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/validation/UriValidatorTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/validation/UriValidatorTest.java b/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/validation/UriValidatorTest.java
index ed358b6f..d7024d4e 100644
--- a/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/validation/UriValidatorTest.java
+++ b/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/validation/UriValidatorTest.java
@@ -32,7 +32,7 @@ class UriValidatorTest {
*/
@ParameterizedTest
- @ValueSource(strings = {"http:/", "http:", "http://"})
+ @ValueSource(strings = {"http:/", "http:", "http://", "h4ttp://"})
void shouldTrueForValidScheme(String uri) {
assertThat(UriValidator.isValidUri(uri)).isTrue();
}
@@ -44,7 +44,7 @@ class UriValidatorTest {
}
@ParameterizedTest
- @ValueSource(strings = {"*http://", "_http://", "?http://"})
+ @ValueSource(strings = {"*http://", "_http://", "?http://", "4http://"})
void shouldFalseForUriWithInvalidScheme(String uri) {
assertThat(UriValidator.isValidUri(uri)).isFalse();
}