ASF Bugzilla – Attachment 2992 Details for
Bug 12349
[Patch] DataFormat not cannot return format string for formats not built-in
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for the unit test that tests the functionality requested
testPatch.txt (text/plain), 1.16 KB, created by
Shawn Laubach
on 2002-09-10 16:47:20 UTC
(
hide
)
Description:
Patch for the unit test that tests the functionality requested
Filename:
MIME Type:
Creator:
Shawn Laubach
Created:
2002-09-10 16:47:20 UTC
Size:
1.16 KB
patch
obsolete
>Index: src/testcases/org/apache/poi/hssf/usermodel/TestWorkbook.java >=================================================================== >RCS file: /home/cvspublic/jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/TestWorkbook.java,v >retrieving revision 1.5 >diff -u -r1.5 TestWorkbook.java >--- src/testcases/org/apache/poi/hssf/usermodel/TestWorkbook.java 2 Sep 2002 02:11:16 -0000 1.5 >+++ src/testcases/org/apache/poi/hssf/usermodel/TestWorkbook.java 10 Sep 2002 16:44:08 -0000 >@@ -249,12 +249,13 @@ > HSSFWorkbook workbook = new HSSFWorkbook(fs); > HSSFSheet sheet = workbook.getSheetAt(0); > HSSFDataFormat format = workbook.createDataFormat(); >+ HSSFCell cell = >+ sheet.getRow(( short ) 0).getCell(( short ) 0); > >- assertEquals(1.25, >- sheet.getRow(( short ) 0).getCell(( short ) 0) >- .getNumericCellValue(), 1e-10); >+ assertEquals(1.25,cell.getNumericCellValue(), 1e-10); >+ > >- assertEquals(format.getFormat("0.0"), 0xa4); >+ assertEquals(format.getFormat(cell.getCellStyle().getDataFormat()), "0.0"); > stream.close(); > }
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 12349
:
2947
|
2974
|
2975
|
2977
| 2992