Merge pull request #3064 from izeye/patch-13

* patch-13:
  Fix redudant assertion in test
This commit is contained in:
Stephane Nicoll 2015-05-29 09:56:35 +02:00
commit 4c54647460
1 changed files with 0 additions and 4 deletions

View File

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