From 8f4ef50bfb28e4920be79759a3691a2e46bacc76 Mon Sep 17 00:00:00 2001 From: Aiham Hasan <89243555+aihamh@users.noreply.github.com> Date: Tue, 7 Feb 2023 20:14:17 +0530 Subject: [PATCH] updated test failures (#744) Signed-off-by: Ritik Jain --- .../io/mosip/resident/test/validator/RequestValidatorTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resident/resident-service/src/test/java/io/mosip/resident/test/validator/RequestValidatorTest.java b/resident/resident-service/src/test/java/io/mosip/resident/test/validator/RequestValidatorTest.java index 1ff9b597a53..3a380e11ca7 100644 --- a/resident/resident-service/src/test/java/io/mosip/resident/test/validator/RequestValidatorTest.java +++ b/resident/resident-service/src/test/java/io/mosip/resident/test/validator/RequestValidatorTest.java @@ -136,6 +136,9 @@ public void setup() { ReflectionTestUtils.setField(requestValidator, "phoneCharsLimit", 64); ReflectionTestUtils.setField(requestValidator, "messageCharsLimit", 1024); ReflectionTestUtils.setField(requestValidator, "purposeCharsLimit", 1024); + ReflectionTestUtils.setField(requestValidator, "messageAllowedSpecialCharRegex", "[A-Za-z0-9 .,-]+"); + ReflectionTestUtils.setField(requestValidator, "purposeAllowedSpecialCharRegex", "[A-Za-z0-9 .,-]+"); + ReflectionTestUtils.setField(requestValidator, "idAllowedSpecialCharRegex", "[A-Za-z0-9 -]+"); Mockito.when(uinValidator.validateId(Mockito.anyString())).thenReturn(true); Mockito.when(vidValidator.validateId(Mockito.anyString())).thenReturn(true); Mockito.when(ridValidator.validateId(Mockito.anyString())).thenReturn(true);