-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MOSIP-39680 fix junit test case #2021
base: develop
Are you sure you want to change the base?
Conversation
Signed-off-by: kaledOu <[email protected]>
Signed-off-by: kaledOu <[email protected]>
1b98647
to
cf2ff95
Compare
|
||
|
||
WebClient.RequestBodyUriSpec requestBodyUriSpec = Mockito.mock(WebClient.RequestBodyUriSpec.class); | ||
WebClient.RequestHeadersSpec requestHeadersSpec = Mockito.mock(WebClient.RequestHeadersSpec.class); | ||
WebClient.ResponseSpec responseSpec = Mockito.mock(WebClient.ResponseSpec.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AuthResponseDTO mockResponse = new AuthResponseDTO(); | ||
ResponseDTO responseDTO = new ResponseDTO(); | ||
responseDTO.setAuthStatus(true); | ||
mockResponse.setResponse(responseDTO); | ||
|
||
Mockito.when(responseSpec.bodyToMono(AuthResponseDTO.class)) | ||
.thenReturn(Mono.just(mockResponse)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kaledOu Do we need to create the new object as it is already there as "authResponse" object. Can we check on this.
Signed-off-by: kaledOu <[email protected]>
|
||
authResponse.setResponse(responseDto); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: kaledOu <[email protected]>
No description provided.