Skip to content

Commit b3d6283

Browse files
committed
CookieAssertionTests expects language tag compliance by default
Issue: SPR-16700
1 parent ef9027e commit b3d6283

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-test/src/test/java/org/springframework/test/web/servlet/samples/standalone/resultmatchers/CookieAssertionTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -70,8 +70,8 @@ public void testNotExists() throws Exception {
7070

7171
@Test
7272
public void testEqualTo() throws Exception {
73-
this.mockMvc.perform(get("/")).andExpect(cookie().value(COOKIE_NAME, "en_US"));
74-
this.mockMvc.perform(get("/")).andExpect(cookie().value(COOKIE_NAME, equalTo("en_US")));
73+
this.mockMvc.perform(get("/")).andExpect(cookie().value(COOKIE_NAME, "en-US"));
74+
this.mockMvc.perform(get("/")).andExpect(cookie().value(COOKIE_NAME, equalTo("en-US")));
7575
}
7676

7777
@Test

0 commit comments

Comments
 (0)