CookieAssertionTests expects language tag compliance by default

Issue: SPR-16700
This commit is contained in:
Juergen Hoeller 2018-07-17 18:18:54 +02:00
parent ef9027e1c1
commit b3d6283d7d
1 changed files with 3 additions and 3 deletions

View File

@ -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