From 8f0fd21f11c967f3e7404cae6f69bf4a9f9b597a Mon Sep 17 00:00:00 2001 From: izeye Date: Fri, 29 May 2015 08:38:16 +0900 Subject: [PATCH] Fix redudant assertion in test Closes gh-3064 --- .../actuate/endpoint/mvc/MvcEndpointCorsIntegrationTests.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/MvcEndpointCorsIntegrationTests.java b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/MvcEndpointCorsIntegrationTests.java index a085fc0417c..46d32b4e1b1 100644 --- a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/MvcEndpointCorsIntegrationTests.java +++ b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/MvcEndpointCorsIntegrationTests.java @@ -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")); }