1
0
mirror of synced 2026-05-22 21:33:16 +00:00

Replace deprecated methods

This commit is contained in:
Claudio Nave
2023-06-11 23:19:18 +02:00
committed by Josh Cummings
parent 0cefb27928
commit 52e12ad64b
24 changed files with 52 additions and 52 deletions
@@ -89,8 +89,8 @@ public class AuthenticationPayloadInterceptorTests {
interceptor.intercept(exchange, authenticationPayloadChain).block();
Authentication authentication = authenticationPayloadChain.getAuthentication();
verify(this.authenticationManager).authenticate(this.authenticationArg.capture());
assertThat(this.authenticationArg.getValue()).isEqualToComparingFieldByField(
UsernamePasswordAuthenticationToken.unauthenticated("user", "password"));
assertThat(this.authenticationArg.getValue()).usingRecursiveComparison()
.isEqualTo(UsernamePasswordAuthenticationToken.unauthenticated("user", "password"));
assertThat(authentication).isEqualTo(expectedAuthentication);
}
@@ -45,7 +45,7 @@ public class BasicAuthenticationDecoderTests {
DataBuffer dataBuffer = encoder.encodeValue(expectedCredentials, factory, elementType, mimeType, hints);
UsernamePasswordMetadata actualCredentials = decoder
.decodeToMono(Mono.just(dataBuffer), elementType, mimeType, hints).block();
assertThat(actualCredentials).isEqualToComparingFieldByField(expectedCredentials);
assertThat(actualCredentials).usingRecursiveComparison().isEqualTo(expectedCredentials);
}
}