Skip to content

Commit

Permalink
Update InternalAuthDelegateServiceImplTest.java
Browse files Browse the repository at this point in the history
Signed-off-by: kaledOu <[email protected]>
  • Loading branch information
kaledOu committed Mar 6, 2025
1 parent f7e6970 commit 1b98647
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ public void setup() throws Exception {
Mockito.when(requestBodyUriSpec.headers(any())).thenReturn(requestBodyUriSpec);
Mockito.when(requestBodyUriSpec.bodyValue(any())).thenReturn(requestHeadersSpec);
Mockito.when(requestHeadersSpec.retrieve()).thenReturn(responseSpec);

// ✅ This is the missing part: Mock `bodyToMono(responseClass)`
AuthResponseDTO mockResponse = new AuthResponseDTO();
ResponseDTO responseDTO = new ResponseDTO();
responseDTO.setAuthStatus(true);
Expand Down

0 comments on commit 1b98647

Please sign in to comment.