Skip to content

Commit

Permalink
MOSIP-24939 Fixed build failure. (mosip#950)
Browse files Browse the repository at this point in the history
* Fixed service history issue.

* Added test class for CredentialStatusUpdateHelper.

* Improved test coverage for resident vid service test.

* Improved test coverage for resident vid service test.

* Improved test coverage for resident vid service test.

* Improved test coverage for TemplateUtil.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage of DownLoadMasterDataController.

* MOSIP-24939 Improved code coverage of GrievanceController.

* MOSIP-24939 Improved code coverage of IdAuthController.

* MOSIP-24939 Improved code coverage of ProxyOtpController.

* MOSIP-24939 Improved code coverage of ResidentController.

* MOSIP-24939 Improved code coverage of ResidentOtpController.

* Replaced convertToMaskDataFormat method name to convertToMaskData

* MOSIP-24939 Fixed build failure.

* MOSIP-24939 Removed un-necessary comments.

* MOSIP-24939 Fixed build failure.

Signed-off-by: kameshsr <[email protected]>
  • Loading branch information
kameshsr committed Oct 17, 2023
1 parent 4d0a28f commit be67c8b
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand All @@ -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");
}

Expand All @@ -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");
}
Expand Down Expand Up @@ -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");
}

Expand All @@ -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");
}
Expand Down

0 comments on commit be67c8b

Please sign in to comment.