ASF Bugzilla – Attachment 20885 Details for
Bug 43489
Fix for TestHSSFDateUtil
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
test patch
HSSFDateUtil.java.patch (text/plain), 1.58 KB, created by
Pavel Krupets
on 2007-09-26 08:47:03 UTC
(
hide
)
Description:
test patch
Filename:
MIME Type:
Creator:
Pavel Krupets
Created:
2007-09-26 08:47:03 UTC
Size:
1.58 KB
patch
obsolete
>Index: src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDateUtil.java >=================================================================== >--- src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDateUtil.java (revision 579546) >+++ src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDateUtil.java (working copy) >@@ -44,9 +44,9 @@ > { > > public static final int CALENDAR_JANUARY = 0; >- public static final int CALENDAR_FEBRUARY = 0; >- public static final int CALENDAR_MARCH = 0; >- public static final int CALENDAR_APRIL = 0; >+ public static final int CALENDAR_FEBRUARY = 1; >+ public static final int CALENDAR_MARCH = 2; >+ public static final int CALENDAR_APRIL = 3; > > public TestHSSFDateUtil(String s) > { >@@ -313,8 +313,7 @@ > assertTrue(HSSFDateUtil.isADateFormat(style.getDataFormat(), style.getDataFormatString(wb))); > assertTrue(HSSFDateUtil.isCellDateFormatted(cell)); > } >- /* >- //commented out until find the reson. >+ > public void testDateBug_2Excel() { > assertEquals(59.0, HSSFDateUtil.getExcelDate(createDate(1900, CALENDAR_FEBRUARY, 28)), 0.00001); > assertEquals(61.0, HSSFDateUtil.getExcelDate(createDate(1900, CALENDAR_MARCH, 1)), 0.00001); >@@ -324,7 +323,6 @@ > assertEquals(37257.00, HSSFDateUtil.getExcelDate(createDate(2002, CALENDAR_JANUARY, 1)), 0.00001); > assertEquals(38074.00, HSSFDateUtil.getExcelDate(createDate(2004, CALENDAR_MARCH, 28)), 0.00001); > } >- */ > > public void testDateBug_2Java() { > assertEquals(createDate(1900, Calendar.FEBRUARY, 28), HSSFDateUtil.getJavaDate(59.0));
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 43489
: 20885