summaryrefslogtreecommitdiff
path: root/spring-web/src/test/java/org/springframework/web/cors/CorsConfigurationTests.java
diff options
context:
space:
mode:
Diffstat (limited to 'spring-web/src/test/java/org/springframework/web/cors/CorsConfigurationTests.java')
-rw-r--r--spring-web/src/test/java/org/springframework/web/cors/CorsConfigurationTests.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/spring-web/src/test/java/org/springframework/web/cors/CorsConfigurationTests.java b/spring-web/src/test/java/org/springframework/web/cors/CorsConfigurationTests.java
index 8d3651c5..32f68af3 100644
--- a/spring-web/src/test/java/org/springframework/web/cors/CorsConfigurationTests.java
+++ b/spring-web/src/test/java/org/springframework/web/cors/CorsConfigurationTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2015 the original author or authors.
+ * Copyright 2002-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -176,7 +176,7 @@ public class CorsConfigurationTests {
@Test
public void checkMethodAllowed() {
- assertEquals(Arrays.asList(HttpMethod.GET), config.checkHttpMethod(HttpMethod.GET));
+ assertEquals(Arrays.asList(HttpMethod.GET, HttpMethod.HEAD), config.checkHttpMethod(HttpMethod.GET));
config.addAllowedMethod("GET");
assertEquals(Arrays.asList(HttpMethod.GET), config.checkHttpMethod(HttpMethod.GET));
config.addAllowedMethod("POST");
@@ -189,7 +189,7 @@ public class CorsConfigurationTests {
assertNull(config.checkHttpMethod(null));
assertNull(config.checkHttpMethod(HttpMethod.DELETE));
config.setAllowedMethods(new ArrayList<>());
- assertNull(config.checkHttpMethod(HttpMethod.HEAD));
+ assertNull(config.checkHttpMethod(HttpMethod.POST));
}
@Test