ASF Bugzilla – Attachment 22421 Details for
Bug 40888
Weekly rotation problem in Europe
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
test case
log4j-40888-testcase.patch (text/plain), 935 bytes, created by
Thorbjørn Ravn Andersen
on 2008-08-09 09:34:45 UTC
(
hide
)
Description:
test case
Filename:
MIME Type:
Creator:
Thorbjørn Ravn Andersen
Created:
2008-08-09 09:34:45 UTC
Size:
935 bytes
patch
obsolete
>Index: tests/src/java/org/apache/log4j/DRFATestCase.java >=================================================================== >--- tests/src/java/org/apache/log4j/DRFATestCase.java (revision 683512) >+++ tests/src/java/org/apache/log4j/DRFATestCase.java (working copy) >@@ -502,5 +502,15 @@ > "witness/drfa_blockedRollover.log")); > } > >- >+ /** Check that the computed rollover period for a pattern containing a week as the finest unit is set to be >+ * a week. Due to a locale mismatch this was incorrect in non-English locales. >+ * {@link https://issues.apache.org/bugzilla/show_bug.cgi?id=40888} >+ * >+ */ >+ public void testWeeklyRollover() { >+ DailyRollingFileAppender drfa = new DailyRollingFileAppender(); >+ drfa.setDatePattern("'.'yyyy-ww"); >+ int checkPeriod = drfa.computeCheckPeriod(); >+ assertEquals(DailyRollingFileAppender.TOP_OF_WEEK, checkPeriod); >+ } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 40888
:
22420
| 22421