Commit 1e6851cf authored by Stephane Nicoll's avatar Stephane Nicoll

Polish "Remove usages of BasicAuthorizationInterceptor"

Closes gh-14830
parent 8b14754c
......@@ -330,6 +330,16 @@ public class RestTemplateBuilderTests {
assertThat(interceptor).extracting("password").containsExactly("boot");
}
@Test
@Deprecated
public void basicAuthorizationShouldApply() {
RestTemplate template = this.builder.basicAuthorization("spring", "boot").build();
ClientHttpRequestInterceptor interceptor = template.getInterceptors().get(0);
assertThat(interceptor).isInstanceOf(BasicAuthenticationInterceptor.class);
assertThat(interceptor).extracting("username").containsExactly("spring");
assertThat(interceptor).extracting("password").containsExactly("boot");
}
@Test
public void customizersWhenCustomizersAreNullShouldThrowException() {
assertThatIllegalArgumentException()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment