Added URI variant methods to the RestTemplate.

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2094 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Arjen Poutsma
2009-10-13 14:20:24 +00:00
parent 33215933df
commit cd37a26586
3 changed files with 144 additions and 9 deletions
@@ -114,8 +114,8 @@ public class RestTemplateIntegrationTests {
}
@Test
public void optionsForAllow() {
Set<HttpMethod> allowed = template.optionsForAllow("http://localhost:8889/get");
public void optionsForAllow() throws URISyntaxException {
Set<HttpMethod> allowed = template.optionsForAllow(new URI("http://localhost:8889/get"));
assertEquals("Invalid response",
EnumSet.of(HttpMethod.GET, HttpMethod.OPTIONS, HttpMethod.HEAD, HttpMethod.TRACE), allowed);
}