You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2021/09/15 10:48:53 UTC

[wicket] branch master updated: Use the ROOT locale when parsing the date in WicketFilterTest

This is an automated email from the ASF dual-hosted git repository.

mgrigorov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/wicket.git


The following commit(s) were added to refs/heads/master by this push:
     new e8066ac  Use the ROOT locale when parsing the date in WicketFilterTest
e8066ac is described below

commit e8066ac04421247d0501e3e97ba5b1f0ccf47087
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
AuthorDate: Wed Sep 15 13:47:24 2021 +0300

    Use the ROOT locale when parsing the date in WicketFilterTest
    
    org.apache.wicket.protocol.http.WicketFilterTest#notModifiedResponseIncludesExpiresHeader() fails with JDK 18 b14 with Locale.UK
---
 .../src/test/java/org/apache/wicket/protocol/http/WicketFilterTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wicket-core/src/test/java/org/apache/wicket/protocol/http/WicketFilterTest.java b/wicket-core/src/test/java/org/apache/wicket/protocol/http/WicketFilterTest.java
index 4b39a5b..e5852b6 100644
--- a/wicket-core/src/test/java/org/apache/wicket/protocol/http/WicketFilterTest.java
+++ b/wicket-core/src/test/java/org/apache/wicket/protocol/http/WicketFilterTest.java
@@ -88,7 +88,7 @@ public class WicketFilterTest
 {
 	private static WebApplication application;
 	private final DateFormat headerDateFormat = new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss z",
-		Locale.UK);
+		Locale.ROOT);
 
 	/**
 	 * @throws Exception