Added URI variant methods to the RestTemplate.

This commit is contained in:
Arjen Poutsma
2009-10-13 14:20:24 +00:00
parent 6aee6a16ab
commit 06286b19ce
3 changed files with 144 additions and 9 deletions

View File

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