Browse Source

Merge pull request #3064 from izeye/patch-13

* patch-13:
  Fix redudant assertion in test
pull/3064/merge
Stephane Nicoll 11 years ago
parent
commit
4c54647460
  1. 4
      spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/MvcEndpointCorsIntegrationTests.java

4
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/MvcEndpointCorsIntegrationTests.java

@ -80,10 +80,6 @@ public class MvcEndpointCorsIntegrationTests { @@ -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