Fix binary incompatibility of old TestRestTemplate

The TestRestTemplate is deprecated (so people can still use it)
but unusable because it only has constructors which depend on the
new options enum.
This commit is contained in:
Dave Syer
2016-05-06 13:06:29 +01:00
parent b97ebdd17f
commit be398741e1
2 changed files with 64 additions and 16 deletions

View File

@@ -0,0 +1,15 @@
package org.springframework.boot.test;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
public class TestRestTemplateTests {
@Test
public void canCreateTemplateFromOwnOptions() {
TestRestTemplate template = new TestRestTemplate(TestRestTemplate.HttpClientOption.ENABLE_REDIRECTS);
assertThat(template).isNotNull();
}
}