Merge pull request #3064 from izeye/patch-13

* patch-13:
  Fix redudant assertion in test
pull/3064/merge
Stephane Nicoll 10 years ago
commit 4c54647460

@ -80,10 +80,6 @@ public class MvcEndpointCorsIntegrationTests {
public void maxAgeDefaultsTo30Minutes() throws Exception {
EnvironmentTestUtils.addEnvironment(this.context,
"endpoints.cors.allowed-origins:foo.example.com");
createMockMvc().perform(
options("/beans").header("Origin", "bar.example.com").header(
HttpHeaders.ACCESS_CONTROL_REQUEST_METHOD, "GET")).andExpect(
status().isForbidden());
performAcceptedCorsRequest().andExpect(
header().string(HttpHeaders.ACCESS_CONTROL_MAX_AGE, "1800"));
}

Loading…
Cancel
Save