Replace deprecated methods
This commit is contained in:
committed by
Josh Cummings
parent
0cefb27928
commit
52e12ad64b
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user