ceki 2004/12/23 10:07:52
Modified: tests/src/java/org/apache/log4j/pattern
CachedDateFormatTest.java
Log:
It doen't make sense to use the machinery of CacheDateFormat for caching values returned
by RelativeTimePatternConverter
Revision Changes Path
1.6 +0 -20 logging-log4j/tests/src/java/org/apache/log4j/pattern/CachedDateFormatTest.java
Index: CachedDateFormatTest.java
===================================================================
RCS file: /home/cvs/logging-log4j/tests/src/java/org/apache/log4j/pattern/CachedDateFormatTest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- CachedDateFormatTest.java 23 Dec 2004 17:50:30 -0000 1.5
+++ CachedDateFormatTest.java 23 Dec 2004 18:07:52 -0000 1.6
@@ -190,26 +190,6 @@
}
/**
- * Attempt to cache a RelativeTimeDateFormat which isn't compatible
- * with caching. Should just delegate to the RelativeTimeDateFormat.
- */
-// public void test7() {
-// DateFormat baseFormat = new RelativeTimeDateFormat();
-// DateFormat cachedFormat = new CachedDateFormat(baseFormat);
-// long ticks = 12603L * 86400000L;
-// Date jul3 = new Date(ticks);
-// assertEquals(baseFormat.format(jul3), cachedFormat.format(jul3));
-// Date plus8ms = new Date(ticks + 8);
-// assertEquals(baseFormat.format(plus8ms), cachedFormat.format(plus8ms));
-// Date plus17ms = new Date(ticks + 17);
-// assertEquals(baseFormat.format(plus17ms), cachedFormat.format(plus17ms));
-// Date plus237ms = new Date(ticks + 237);
-// assertEquals(baseFormat.format(plus237ms), cachedFormat.format(plus237ms));
-// Date plus1415ms = new Date(ticks + 1415);
-// assertEquals(baseFormat.format(plus1415ms), cachedFormat.format(plus1415ms));
-// }
-
- /**
* Set time zone on cached and check that it is effective.
*/
public void test8() {
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
|