Repository: logging-log4j2
Updated Branches:
  refs/heads/master 34b0cd46f -> 03d25d5dd


LOG4J2-1268 show date format pattern in test failure message


Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/6216d989
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/6216d989
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/6216d989

Branch: refs/heads/master
Commit: 6216d989982a9fdf018400e9bdecc6a77506fe01
Parents: 1f30fec
Author: rpopma <[email protected]>
Authored: Fri Feb 12 23:18:02 2016 +0900
Committer: rpopma <[email protected]>
Committed: Fri Feb 12 23:18:02 2016 +0900

----------------------------------------------------------------------
 .../log4j/core/util/datetime/FixedDateFormatTest.java        | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/6216d989/log4j-core/src/test/java/org/apache/logging/log4j/core/util/datetime/FixedDateFormatTest.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/test/java/org/apache/logging/log4j/core/util/datetime/FixedDateFormatTest.java
 
b/log4j-core/src/test/java/org/apache/logging/log4j/core/util/datetime/FixedDateFormatTest.java
index 7ae60cf..0946d73 100644
--- 
a/log4j-core/src/test/java/org/apache/logging/log4j/core/util/datetime/FixedDateFormatTest.java
+++ 
b/log4j-core/src/test/java/org/apache/logging/log4j/core/util/datetime/FixedDateFormatTest.java
@@ -144,7 +144,7 @@ public class FixedDateFormatTest {
             for (long time = start; time < end; time += 12345) {
                 final String actual = customTF.format(time);
                 final String expected = simpleDF.format(new Date(time));
-                assertEquals(format + "/" + time, expected, actual);
+                assertEquals(format + "(" + format.getPattern() + ")" + "/" + 
time, expected, actual);
             }
         }
     }
@@ -160,7 +160,7 @@ public class FixedDateFormatTest {
             for (long time = end; time > start; time -= 12345) {
                 final String actual = customTF.format(time);
                 final String expected = simpleDF.format(new Date(time));
-                assertEquals(format + "/" + time, expected, actual);
+                assertEquals(format + "(" + format.getPattern() + ")" + "/" + 
time, expected, actual);
             }
         }
     }
@@ -178,7 +178,7 @@ public class FixedDateFormatTest {
                 final int length = customTF.format(time, buffer, 23);
                 final String actual = new String(buffer, 23, length);
                 final String expected = simpleDF.format(new Date(time));
-                assertEquals(format + "/" + time, expected, actual);
+                assertEquals(format + "(" + format.getPattern() + ")" + "/" + 
time, expected, actual);
             }
         }
     }
@@ -196,7 +196,7 @@ public class FixedDateFormatTest {
                 final int length = customTF.format(time, buffer, 23);
                 final String actual = new String(buffer, 23, length);
                 final String expected = simpleDF.format(new Date(time));
-                assertEquals(format + "/" + time, expected, actual);
+                assertEquals(format + "(" + format.getPattern() + ")" + "/" + 
time, expected, actual);
             }
         }
     }

Reply via email to