From b3d6283d7d36331eb0223108bb12769ede29c1eb Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Tue, 17 Jul 2018 18:18:54 +0200 Subject: [PATCH] CookieAssertionTests expects language tag compliance by default Issue: SPR-16700 --- .../standalone/resultmatchers/CookieAssertionTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-test/src/test/java/org/springframework/test/web/servlet/samples/standalone/resultmatchers/CookieAssertionTests.java b/spring-test/src/test/java/org/springframework/test/web/servlet/samples/standalone/resultmatchers/CookieAssertionTests.java index a315482244..f99c6e163d 100644 --- a/spring-test/src/test/java/org/springframework/test/web/servlet/samples/standalone/resultmatchers/CookieAssertionTests.java +++ b/spring-test/src/test/java/org/springframework/test/web/servlet/samples/standalone/resultmatchers/CookieAssertionTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 the original author or authors. + * Copyright 2002-2018 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. @@ -70,8 +70,8 @@ public class CookieAssertionTests { @Test public void testEqualTo() throws Exception { - this.mockMvc.perform(get("/")).andExpect(cookie().value(COOKIE_NAME, "en_US")); - this.mockMvc.perform(get("/")).andExpect(cookie().value(COOKIE_NAME, equalTo("en_US"))); + this.mockMvc.perform(get("/")).andExpect(cookie().value(COOKIE_NAME, "en-US")); + this.mockMvc.perform(get("/")).andExpect(cookie().value(COOKIE_NAME, equalTo("en-US"))); } @Test