This commit is contained in:
Phillip Webb
2016-06-29 10:57:43 -07:00
parent 266445aaf0
commit be884d4e33
3 changed files with 2 additions and 3 deletions

View File

@@ -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

View File

@@ -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);

View File

@@ -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);