Polish
This commit is contained in:
@@ -18,7 +18,6 @@ package org.springframework.boot.test;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URI;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
@@ -55,8 +54,6 @@ import org.springframework.web.client.RestTemplate;
|
||||
@Deprecated
|
||||
public class TestRestTemplate extends RestTemplate {
|
||||
|
||||
private static final Charset UTF_8 = Charset.forName("UTF-8");
|
||||
|
||||
/**
|
||||
* Create a new {@link TestRestTemplate} instance.
|
||||
* @param httpClientOptions client options to use if the Apache HTTP Client is used
|
||||
|
||||
@@ -87,6 +87,7 @@ public class RelaxedPropertyResolver implements PropertyResolver {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public <T> Class<T> getPropertyAsClass(String key, Class<T> targetType) {
|
||||
RelaxedNames prefixes = new RelaxedNames(this.prefix);
|
||||
RelaxedNames keys = new RelaxedNames(key);
|
||||
|
||||
@@ -119,6 +119,7 @@ public class RelaxedPropertyResolverTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Deprecated
|
||||
public void getPropertyAsClass() throws Exception {
|
||||
assertThat(this.resolver.getPropertyAsClass("my-class", String.class))
|
||||
.isEqualTo(String.class);
|
||||
|
||||
Reference in New Issue
Block a user