Merge pull request #3064 from izeye/patch-13
* patch-13: Fix redudant assertion in test
This commit is contained in:
commit
4c54647460
|
|
@ -80,10 +80,6 @@ public class MvcEndpointCorsIntegrationTests {
|
||||||
public void maxAgeDefaultsTo30Minutes() throws Exception {
|
public void maxAgeDefaultsTo30Minutes() throws Exception {
|
||||||
EnvironmentTestUtils.addEnvironment(this.context,
|
EnvironmentTestUtils.addEnvironment(this.context,
|
||||||
"endpoints.cors.allowed-origins:foo.example.com");
|
"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(
|
performAcceptedCorsRequest().andExpect(
|
||||||
header().string(HttpHeaders.ACCESS_CONTROL_MAX_AGE, "1800"));
|
header().string(HttpHeaders.ACCESS_CONTROL_MAX_AGE, "1800"));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue