ppkarwasz commented on code in PR #3931:
URL: https://github.com/apache/logging-log4j2/pull/3931#discussion_r2358362210


##########
log4j-core-test/src/test/java/org/apache/logging/log4j/core/pattern/DatePatternConverterWithLegacyInstantFormatterTest.java:
##########
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.logging.log4j.core.pattern;
+
+import org.apache.logging.log4j.test.junit.SetTestProperty;
+import org.apache.logging.log4j.test.junit.UsingTestProperties;
+
[email protected](value = {
+        @SetTestProperty(key = "log4j2.enable.threadlocals", value = "false"),
+        @SetTestProperty(key = "log4j2.instantFormatter", value = "legacy")
+})
+@UsingTestProperties
+class DatePatternConverterWithLegacyInstantFormatterTest extends 
DatePatternConverterTestBase {

Review Comment:
   Personally I don't think we want to introduce more tests for the legacy 
formatter, since it is deprecated and will not change any more. @vy, what do 
you think?



##########
log4j-core-test/src/test/java/org/apache/logging/log4j/core/pattern/DatePatternConverterTestBase.java:
##########
@@ -163,6 +175,7 @@ void testFormatAmericanPatterns() {
         assertDatePattern("dd/MM/yyyy HH:mm:ss.SSSSSS", date, "11/03/2011 
14:15:16.123000");
         assertDatePattern("dd/MM/yy HH:mm:ss.SSS", date, "11/03/11 
14:15:16.123");
         assertDatePattern("dd/MM/yy HH:mm:ss.SSSSSS", date, "11/03/11 
14:15:16.123000");
+        assertDatePattern("EEE, dd MMM yyyy HH:mm:ss zzz", date, "Fri, 11 Mar 
2011 14:15:16 PST");

Review Comment:
   Thanks for the test case, much appreciated! :100:



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to