mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-24 15:49:26 +00:00
Added URI variant methods to the RestTemplate.
This commit is contained in:
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user