Skip to content

Commit

Permalink
updated test failures (mosip#744)
Browse files Browse the repository at this point in the history
Signed-off-by: Ritik Jain <[email protected]>
  • Loading branch information
aihamh authored and Ritik Jain committed Oct 31, 2023
1 parent 19cef1e commit 8f4ef50
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8f4ef50

Please sign in to comment.