logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carn...@apache.org
Subject svn commit: r510719 - /logging/log4j/branches/v1_2-branch/tests/src/java/org/apache/log4j/helpers/DateLayoutTest.java
Date Thu, 22 Feb 2007 23:52:25 GMT
Author: carnold
Date: Thu Feb 22 15:52:25 2007
New Revision: 510719

URL: http://svn.apache.org/viewvc?view=rev&rev=510719
Log:
Bug 41373: DateLayoutTest fails if default Locale is not en_US

Modified:
    logging/log4j/branches/v1_2-branch/tests/src/java/org/apache/log4j/helpers/DateLayoutTest.java

Modified: logging/log4j/branches/v1_2-branch/tests/src/java/org/apache/log4j/helpers/DateLayoutTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/branches/v1_2-branch/tests/src/java/org/apache/log4j/helpers/DateLayoutTest.java?view=diff&rev=510719&r1=510718&r2=510719
==============================================================================
--- logging/log4j/branches/v1_2-branch/tests/src/java/org/apache/log4j/helpers/DateLayoutTest.java
(original)
+++ logging/log4j/branches/v1_2-branch/tests/src/java/org/apache/log4j/helpers/DateLayoutTest.java
Thu Feb 22 15:52:25 2007
@@ -242,7 +242,9 @@
       calendar.clear();
       calendar.set(1970, 0, 1, 0, 0, 0);
       String actual = format.format(calendar.getTime());
-      assertEquals("01 Jan 1970 00:00:00,000", actual);
+      SimpleDateFormat df = new SimpleDateFormat("dd MMM yyyy HH:mm:ss,SSS");
+      String expected = df.format(calendar.getTime());
+      assertEquals(expected, actual);
   }
 
   /**



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message