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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new 8aff0a0  Show Java version in assertion failure message.
8aff0a0 is described below

commit 8aff0a08f2767ed06f99b9f5a62b158bf9ef04cd
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Tue Dec 29 11:45:04 2020 -0500

    Show Java version in assertion failure message.
---
 src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java 
b/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java
index d7bd1f1..9e6dd1b 100644
--- a/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java
+++ b/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java
@@ -38,6 +38,7 @@ import java.util.stream.Stream;
 
 import org.apache.commons.lang3.LocaleUtils;
 import org.apache.commons.lang3.SerializationUtils;
+import org.apache.commons.lang3.SystemUtils;
 import org.apache.commons.lang3.function.TriFunction;
 import org.junit.jupiter.api.Test;
 import org.junit.jupiter.params.ParameterizedTest;
@@ -130,7 +131,8 @@ public class FastDateParserTest {
         try {
             final Date expectedTime = sdf.parse(formattedDate);
             final Date actualTime = fdf.parse(formattedDate);
-            assertEquals(expectedTime, actualTime, "locale : " + locale + " 
formattedDate : " + formattedDate + "\n");
+            assertEquals(expectedTime, actualTime, "locale : " + locale + ", 
formattedDate : " + formattedDate
+                + ", Java: " + SystemUtils.JAVA_RUNTIME_VERSION + "\n");
         } catch (final Exception e) {
             fail("locale : " + locale + " formattedDate : " + formattedDate + 
" error : " + e + "\n", e);
         }

Reply via email to