Merge branch '6.1.x'

# Conflicts:
#	buildSrc/src/main/java/org/springframework/build/TestConventions.java
This commit is contained in:
Sam Brannen
2024-07-04 17:05:38 +02:00
4 changed files with 54 additions and 21 deletions

View File

@@ -128,9 +128,10 @@ class GsonFactoryBeanTests {
cal.set(Calendar.DATE, 1);
Date date = cal.getTime();
bean.setDate(date);
// \p{Zs} matches any Unicode space character
assertThat(gson.toJson(bean))
.startsWith("{\"date\":\"Jan 1, 2014")
.endsWith("12:00:00 AM\"}");
.matches(".+?12:00:00\\p{Zs}AM\"}");
}
@Test