Fix redudant assertion in test

Closes gh-3064
This commit is contained in:
izeye 2015-05-29 08:38:16 +09:00 committed by Stephane Nicoll
parent c6ff911257
commit 8f0fd21f11
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"));
}