diff --git a/resident/resident-service/src/test/java/io/mosip/resident/test/service/ResidentVidServiceTest.java b/resident/resident-service/src/test/java/io/mosip/resident/test/service/ResidentVidServiceTest.java index e73f38c58b8..cb1a231c783 100644 --- a/resident/resident-service/src/test/java/io/mosip/resident/test/service/ResidentVidServiceTest.java +++ b/resident/resident-service/src/test/java/io/mosip/resident/test/service/ResidentVidServiceTest.java @@ -223,7 +223,6 @@ public void vidAlreadyExistsExceptionTest() throws ResidentServiceCheckedExcepti when(idAuthService.validateOtp(anyString(), anyString(), anyString())).thenReturn(Boolean.TRUE); when(idAuthService.validateOtp(anyString(), anyString(), anyString())).thenReturn(Boolean.TRUE); - when(residentServiceRestClient.postApi(any(), any(), any(), any())).thenReturn(response); residentVidService.generateVid(requestDto, "12345"); } @@ -243,7 +242,6 @@ public void vidCreationExceptionTest() throws ResidentServiceCheckedException, O when(idAuthService.validateOtp(anyString(), anyString(), anyString())).thenReturn(Boolean.TRUE); when(idAuthService.validateOtp(anyString(), anyString(), anyString())).thenReturn(Boolean.TRUE); - when(residentServiceRestClient.postApi(any(), any(), any(), any())).thenReturn(response); residentVidService.generateVid(requestDto, "12345"); } @@ -262,7 +260,6 @@ public void apiResourceAccessExceptionTest() throws ResidentServiceCheckedExcept when(idAuthService.validateOtp(anyString(), anyString(), anyString())).thenReturn(Boolean.TRUE); when(idAuthService.validateOtp(anyString(), anyString(), anyString())).thenReturn(Boolean.TRUE); - when(residentServiceRestClient.postApi(any(), any(), any(), any())).thenThrow(new ApisResourceAccessException()); residentVidService.generateVid(requestDto, "12345"); } @@ -313,9 +310,6 @@ public void apiResourceAccessExceptionTest2() throws ResidentServiceCheckedExcep when(idAuthService.validateOtp(anyString(), anyString(), anyString())).thenReturn(Boolean.TRUE); when(idAuthService.validateOtp(anyString(), anyString(), anyString())).thenReturn(Boolean.TRUE); - when(residentServiceRestClient.patchApi(any(), any(), any(), any())).thenThrow(new ApisResourceAccessException()); - - when(identityServiceImpl.getUinForIndividualId(vid)).thenReturn("1234567890"); residentVidService.revokeVid(vidRevokeRequest,vid, "12345"); } @@ -333,7 +327,6 @@ public void idRepoAppExceptionTest() throws ResidentServiceCheckedException, Otp when(idAuthService.validateOtp(anyString(), anyString(), anyString())).thenReturn(Boolean.TRUE); when(idAuthService.validateOtp(anyString(), anyString(), anyString())).thenReturn(Boolean.TRUE); - when(identityServiceImpl.getUinForIndividualId(vid)).thenReturn("1234567890"); residentVidService.revokeVid(vidRevokeRequest,vid, "12345"); }